From baa687bed2f1f9ee6e44c70d95baad8757ac529c Mon Sep 17 00:00:00 2001 From: Josh Poimboeuf Date: Mon, 11 Nov 2013 21:57:29 -0600 Subject: [PATCH] test: fix TestCreateStartRestartStopStartKillRm cat needs stdin opened, otherwise it dies immediately. --- integration/server_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/server_test.go b/integration/server_test.go index b19c2e1a91..8cd3e30fdf 100644 --- a/integration/server_test.go +++ b/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) }