Browse code

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

Guillaume J. Charmes authored on 2013/04/05 18:01:38
Showing 1 changed files
... ...
@@ -267,8 +267,7 @@ func TestStart(t *testing.T) {
267 267
 	// Try to avoid the timeoout in destroy. Best effort, don't check error
268 268
 	cStdin, _ := container.StdinPipe()
269 269
 	cStdin.Close()
270
-	container.WaitTimeout(500 * time.Millisecond)
271
-	container.State.setStopped(0)
270
+	container.WaitTimeout(2 * time.Second)
272 271
 }
273 272
 
274 273
 func TestRun(t *testing.T) {