diff --git a/container_test.go b/container_test.go index 571a093767..00c2aa6c8f 100644 --- a/container_test.go +++ b/container_test.go @@ -267,6 +267,8 @@ 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) } func TestRun(t *testing.T) {