Browse code

Integrated @creack's feedback on TestRestore

shin- authored on 2013/04/03 21:37:45
Showing 1 changed files
... ...
@@ -305,8 +305,7 @@ func TestRestore(t *testing.T) {
305 305
 	// Simulate a crash/manual quit of dockerd: process dies, states stays 'Running'
306 306
 	cStdin, _ := container2.StdinPipe()
307 307
 	cStdin.Close()
308
-	container2.State.setStopped(-1)
309
-	time.Sleep(time.Second)
308
+	container2.WaitTimeout(time.Second)
310 309
 	container2.State.Running = true
311 310
 	container2.ToDisk()
312 311