瀏覽代碼

Increase the timeout in TestStart() to make sure the container has the time to die within the function

Guillaume J. Charmes 12 年之前
父節點
當前提交
20085794f0
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      container_test.go

+ 1 - 2
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) {