Skip to content

Commit

Permalink
container: make StopContainer test more reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Dec 2, 2017
1 parent 5ffdfff commit f3d2516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2736,11 +2736,11 @@ func TestStartContainerWhenContextTimesOut(t *testing.T) {

func TestStopContainerWhenContextTimesOut(t *testing.T) {
t.Parallel()
rt := sleepyRoudTripper{sleepDuration: 200 * time.Millisecond}
rt := sleepyRoudTripper{sleepDuration: 300 * time.Millisecond}

client := newTestClient(&rt)

ctx, cancel := context.WithTimeout(context.TODO(), 100*time.Millisecond)
ctx, cancel := context.WithTimeout(context.TODO(), 50*time.Millisecond)
defer cancel()

err := client.StopContainerWithContext("id", 10, ctx)
Expand Down

0 comments on commit f3d2516

Please sign in to comment.