Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
worker/undertaker: avoid double channel close in tests #4090
Conversation
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
added a commit
that referenced
this pull request
Jan 13, 2016
jujubot
merged commit 0e7a524
into
juju:machine-dep-engine
Jan 13, 2016
mjs
deleted the
mjs:MADE-undertaker-test-panic
branch
Jan 13, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mjs commentedJan 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/)