Skip to content

Commit f3d2516

Browse files
committed
container: make StopContainer test more reliable
1 parent 5ffdfff commit f3d2516

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

container_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2736,11 +2736,11 @@ func TestStartContainerWhenContextTimesOut(t *testing.T) {
27362736

27372737
func TestStopContainerWhenContextTimesOut(t *testing.T) {
27382738
t.Parallel()
2739-
rt := sleepyRoudTripper{sleepDuration: 200 * time.Millisecond}
2739+
rt := sleepyRoudTripper{sleepDuration: 300 * time.Millisecond}
27402740

27412741
client := newTestClient(&rt)
27422742

2743-
ctx, cancel := context.WithTimeout(context.TODO(), 100*time.Millisecond)
2743+
ctx, cancel := context.WithTimeout(context.TODO(), 50*time.Millisecond)
27442744
defer cancel()
27452745

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

0 commit comments

Comments
 (0)