Browse code

Avoid unwanted warnings from destroy() in TestStart()

Guillaume J. Charmes authored on 2013/04/05 12:30:24
Showing 1 changed files
... ...
@@ -267,6 +267,8 @@ 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 272
 }
271 273
 
272 274
 func TestRun(t *testing.T) {