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/undertaker: avoid double channel close in tests #4090

Merged
merged 1 commit into from
Jan 13, 2016

Conversation

mjs
Copy link

@mjs mjs commented Jan 13, 2016

A recent test change made during the undertaker's catacomb conversion introduced the possibility of a double channel close which seems to happen quite often under Go 1.5. This is now fixed using sync.Once to ensure that channel is only closed once.

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

A recent test change made during the undertaker's catacomb conversion
introduced the possibility of a double channel close which seems to
happen quite often under Go 1.5. This is now fixed using sync.Once to
ensure that channel is only closed once.
@mjs
Copy link
Author

mjs commented Jan 13, 2016

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Jan 13, 2016

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

jujubot added a commit that referenced this pull request Jan 13, 2016
worker/undertaker: avoid double channel close in tests

A recent test change made during the undertaker's catacomb conversion introduced the possibility of a double channel close which seems to happen quite often under Go 1.5. This is now fixed using sync.Once to ensure that channel is only closed once.

(Review request: http://reviews.vapour.ws/r/3511/)
@jujubot jujubot merged commit 0e7a524 into juju:machine-dep-engine Jan 13, 2016
@mjs mjs deleted the MADE-undertaker-test-panic branch January 13, 2016 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants