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:
parent
5fa3a6f248
commit
e45bf8d2e9
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue