Skip to content

Commit

Permalink
Increase test timeouts
Browse files Browse the repository at this point in the history
Increases test timeouts slightly. This may fix flaky tests.

Signed-off-by: Drew Erny <[email protected]>
  • Loading branch information
dperny committed Jan 17, 2019
1 parent 7c619ff commit dd101c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manager/orchestrator/testutils/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func WatchTaskCreate(t *testing.T, watch chan events.Event) *api.Task {
if _, ok := event.(api.EventUpdateTask); ok {
assert.FailNow(t, "got EventUpdateTask when expecting EventCreateTask", fmt.Sprint(event))
}
case <-time.After(2 * time.Second):
case <-time.After(3 * time.Second):
assert.FailNow(t, "no task creation")
}
}
Expand All @@ -55,7 +55,7 @@ func WatchTaskUpdate(t *testing.T, watch chan events.Event) *api.Task {
if _, ok := event.(api.EventCreateTask); ok {
assert.FailNow(t, "got EventCreateTask when expecting EventUpdateTask", fmt.Sprint(event))
}
case <-time.After(time.Second):
case <-time.After(2 * time.Second):
assert.FailNow(t, "no task update")
}
}
Expand Down

0 comments on commit dd101c5

Please sign in to comment.