瀏覽代碼

Merge pull request #6708 from crosbymichael/fix-bunk-test

Fix sleep command in tests
Victor Vieux 11 年之前
父節點
當前提交
f7eaeae43c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      integration-cli/docker_cli_diff_test.go

+ 1 - 1
integration-cli/docker_cli_diff_test.go

@@ -66,7 +66,7 @@ func TestDiffEnsureDockerinitFilesAreIgnored(t *testing.T) {
 }
 }
 
 
 func TestDiffEnsureOnlyKmsgAndPtmx(t *testing.T) {
 func TestDiffEnsureOnlyKmsgAndPtmx(t *testing.T) {
-	runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "sleep 0")
+	runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "sleep", "0")
 	cid, _, err := runCommandWithOutput(runCmd)
 	cid, _, err := runCommandWithOutput(runCmd)
 	errorOut(err, t, fmt.Sprintf("%s", err))
 	errorOut(err, t, fmt.Sprintf("%s", err))
 	cleanCID := stripTrailingCharacters(cid)
 	cleanCID := stripTrailingCharacters(cid)