mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #13912 from icecrime/13902_improve_test
Replace "sleep" by "top" in test implementation
This commit is contained in:
commit
5bddafe169
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ type containerPs struct {
|
||||||
func (s *DockerSuite) TestContainerPsOmitFields(c *check.C) {
|
func (s *DockerSuite) TestContainerPsOmitFields(c *check.C) {
|
||||||
name := "pstest"
|
name := "pstest"
|
||||||
port := 80
|
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)
|
_, err := runCommand(runCmd)
|
||||||
c.Assert(err, check.IsNil)
|
c.Assert(err, check.IsNil)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue