Explorar o código

test: fix TestCreateStartRestartStopStartKillRm

cat needs stdin opened, otherwise it dies immediately.
Josh Poimboeuf %!s(int64=11) %!d(string=hai) anos
pai
achega
baa687bed2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      integration/server_test.go

+ 1 - 1
integration/server_test.go

@@ -164,7 +164,7 @@ func TestCreateStartRestartStopStartKillRm(t *testing.T) {
 	srv := mkServerFromEngine(eng, t)
 	defer mkRuntimeFromEngine(eng, t).Nuke()
 
-	config, hostConfig, _, err := docker.ParseRun([]string{unitTestImageID, "/bin/cat"}, nil)
+	config, hostConfig, _, err := docker.ParseRun([]string{"-i", unitTestImageID, "/bin/cat"}, nil)
 	if err != nil {
 		t.Fatal(err)
 	}