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

Decrease timeouts in TestEventsStreaming

Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
This commit is contained in:
Alexandr Morozov 2015-04-06 13:40:56 -07:00
parent 5fa3a6f248
commit e45bf8d2e9

View file

@ -476,21 +476,21 @@ func TestEventsStreaming(t *testing.T) {
id <- cleanedContainerID id <- cleanedContainerID
select { select {
case <-time.After(30 * time.Second): case <-time.After(5 * time.Second):
t.Fatal("failed to observe container create in timely fashion") t.Fatal("failed to observe container create in timely fashion")
case <-eventCreate: case <-eventCreate:
// ignore, done // ignore, done
} }
select { select {
case <-time.After(30 * time.Second): case <-time.After(5 * time.Second):
t.Fatal("failed to observe container start in timely fashion") t.Fatal("failed to observe container start in timely fashion")
case <-eventStart: case <-eventStart:
// ignore, done // ignore, done
} }
select { select {
case <-time.After(30 * time.Second): case <-time.After(5 * time.Second):
t.Fatal("failed to observe container die in timely fashion") t.Fatal("failed to observe container die in timely fashion")
case <-eventDie: case <-eventDie:
// ignore, done // ignore, done
@ -503,7 +503,7 @@ func TestEventsStreaming(t *testing.T) {
} }
select { select {
case <-time.After(30 * time.Second): case <-time.After(5 * time.Second):
t.Fatal("failed to observe container destroy in timely fashion") t.Fatal("failed to observe container destroy in timely fashion")
case <-eventDestroy: case <-eventDestroy:
// ignore, done // ignore, done