From cda9cf1539b4e3ce24ce77892b1e68ddb454f566 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Thu, 4 Apr 2013 20:30:24 -0700 Subject: [PATCH] Avoid unwanted warnings from destroy() in TestStart() --- container_test.go | 2 ++ 1 file changed, 2 insertions(+) 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) {