Pārlūkot izejas kodu

Increase the timeout of TestRestore() to avoid unwanted timeout error

Guillaume J. Charmes 12 gadi atpakaļ
vecāks
revīzija
bae6f95830
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      runtime_test.go

+ 1 - 1
runtime_test.go

@@ -314,7 +314,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()
-	if err := container2.WaitTimeout(time.Second); err != nil {
+	if err := container2.WaitTimeout(2 * time.Second); err != nil {
 		t.Fatal(err)
 		t.Fatal(err)
 	}
 	}
 	container2.State.Running = true
 	container2.State.Running = true