From 20085794f023e2e5cf7d772a67f9c3b2e3afc93f Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Fri, 5 Apr 2013 02:01:38 -0700 Subject: [PATCH] Increase the timeout in TestStart() to make sure the container has the time to die within the function --- container_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/container_test.go b/container_test.go index 00c2aa6c8f..ac47f84bf0 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) {