Integrated @creack's feedback on TestRestore

This commit is contained in:
shin- 2013-04-03 05:37:45 -07:00
parent 791ca6fde4
commit 7b74b9cab5
1 changed files with 1 additions and 2 deletions

View File

@ -305,8 +305,7 @@ func TestRestore(t *testing.T) {
// Simulate a crash/manual quit of dockerd: process dies, states stays 'Running' // Simulate a crash/manual quit of dockerd: process dies, states stays 'Running'
cStdin, _ := container2.StdinPipe() cStdin, _ := container2.StdinPipe()
cStdin.Close() cStdin.Close()
container2.State.setStopped(-1) container2.WaitTimeout(time.Second)
time.Sleep(time.Second)
container2.State.Running = true container2.State.Running = true
container2.ToDisk() container2.ToDisk()