Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

worker/peergrouper: Fix data race in tests #5225

Merged
merged 1 commit into from Apr 20, 2016

Conversation

mjs
Copy link

@mjs mjs commented Apr 20, 2016

TestHasVoteMaintainedEvenWhenReplicaSetFails was neglecting to stop one of the workers it started. The leaked worker would read of variables which were being patched by later tests in the suite. The
race detector would occasionally pick this up, depending on timing.

Drive-by: standardised on the workertest.CleanKill helper for shutting down the workers throughout the suite.

Fixes LP #1467715.

(Review request: http://reviews.vapour.ws/r/4650/)

TestHasVoteMaintainedEvenWhenReplicaSetFails was neglecting to stop
one of the workers it started. The leaked worker would read of
variables which were being patched by later tests in the suite. The
race detector would occasionally pick this up, depending on timing.

Drive-by: standardised on the workertest.CleanKill helper for shutting
down the workers throughout the suite.
@mjs
Copy link
Author

mjs commented Apr 20, 2016

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Apr 20, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit 7f0355b into juju:master Apr 20, 2016
@mjs mjs deleted the 1467715-peergrouper-test-race branch April 20, 2016 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants