浏览代码

Merge pull request #13912 from icecrime/13902_improve_test

Replace "sleep" by "top" in test implementation
Antonio Murdaca 10 年之前
父节点
当前提交
5bddafe169
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      integration-cli/docker_api_containers_test.go

+ 1 - 1
integration-cli/docker_api_containers_test.go

@@ -94,7 +94,7 @@ type containerPs struct {
 func (s *DockerSuite) TestContainerPsOmitFields(c *check.C) {
 	name := "pstest"
 	port := 80
-	runCmd := exec.Command(dockerBinary, "run", "-d", "--name", name, "--expose", strconv.Itoa(port), "busybox", "sleep", "5")
+	runCmd := exec.Command(dockerBinary, "run", "-d", "--name", name, "--expose", strconv.Itoa(port), "busybox", "top")
 	_, err := runCommand(runCmd)
 	c.Assert(err, check.IsNil)