Merge pull request #13912 from icecrime/13902_improve_test
Replace "sleep" by "top" in test implementation Upstream-commit: 5bddafe16938ee4af4c1f3e7380e82a610a9242d Component: engine
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user