1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #20464 from cpuguy83/fix_events_flakiness

Fix events test flakiness.
This commit is contained in:
Arnaud Porterie 2016-02-19 15:39:27 -08:00
commit b9195cd6d4
3 changed files with 11 additions and 11 deletions

View file

@ -267,8 +267,8 @@ func (s *DockerAuthzSuite) TestAuthZPluginAllowEventStream(c *check.C) {
c.Assert(s.d.waitRun(containerID), checker.IsNil)
events := map[string]chan bool{
"create": make(chan bool),
"start": make(chan bool),
"create": make(chan bool, 1),
"start": make(chan bool, 1),
}
matcher := matchEventLine(containerID, "container", events)
@ -279,7 +279,7 @@ func (s *DockerAuthzSuite) TestAuthZPluginAllowEventStream(c *check.C) {
for event, eventChannel := range events {
select {
case <-time.After(5 * time.Second):
case <-time.After(30 * time.Second):
// Fail the test
observer.CheckEventError(c, containerID, event, matcher)
c.FailNow()