diff --git a/container_test.go b/container_test.go index 00c2aa6c8..ac47f84bf 100644 --- a/container_test.go +++ b/container_test.go @@ -267,8 +267,7 @@ func TestStart(t *testing.T) { // Try to avoid the timeoout in destroy. Best effort, don't check error cStdin, _ := container.StdinPipe() cStdin.Close() - container.WaitTimeout(500 * time.Millisecond) - container.State.setStopped(0) + container.WaitTimeout(2 * time.Second) } func TestRun(t *testing.T) {