mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix events test flakiness.
Since channel is getting a send instead of a close now, this can cause random issues ranging through the list of channels if the channel is unbuffered since the send may be blocked. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
038c3b8287
commit
abbf2aa6dd
3 changed files with 11 additions and 11 deletions
|
@ -171,8 +171,8 @@ func (s *DockerSuite) TestBuildCancellationKillsSleep(c *check.C) {
|
|||
}
|
||||
|
||||
testActions := map[string]chan bool{
|
||||
"start": make(chan bool),
|
||||
"die": make(chan bool),
|
||||
"start": make(chan bool, 1),
|
||||
"die": make(chan bool, 1),
|
||||
}
|
||||
|
||||
matcher := matchEventLine(buildID, "container", testActions)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue