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