Skip to content

Commit

Permalink
Merge pull request #1334 from HusterWan/zr/test-fix
Browse files Browse the repository at this point in the history
test: fix cli_ps_test failed
  • Loading branch information
allencloud authored May 16, 2018
2 parents 3c29c40 + f004ea1 commit c52e283
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/cli_ps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (suite *PouchPsSuite) TestPsWorks(c *check.C) {
func (suite *PouchPsSuite) TestPsAll(c *check.C) {
name := "ps-all"

command.PouchRun("create", "--name", name, busyboxImage).Assert(c, icmd.Success)
command.PouchRun("create", "--name", name, busyboxImage, "top").Assert(c, icmd.Success)
defer DelContainerForceMultyTime(c, name)

res := command.PouchRun("ps").Assert(c, icmd.Success)
Expand All @@ -95,7 +95,7 @@ func (suite *PouchPsSuite) TestPsAll(c *check.C) {
func (suite *PouchPsSuite) TestPsQuiet(c *check.C) {
name := "ps-quiet"

command.PouchRun("create", "--name", name, busyboxImage).Assert(c, icmd.Success)
command.PouchRun("create", "--name", name, busyboxImage, "top").Assert(c, icmd.Success)
defer DelContainerForceMultyTime(c, name)

res := command.PouchRun("ps", "-q", "-a").Assert(c, icmd.Success)
Expand All @@ -113,7 +113,7 @@ func (suite *PouchPsSuite) TestPsQuiet(c *check.C) {
func (suite *PouchPsSuite) TestPsNoTrunc(c *check.C) {
name := "ps-noTrunc"

command.PouchRun("create", "--name", name, busyboxImage).Assert(c, icmd.Success)
command.PouchRun("create", "--name", name, busyboxImage, "top").Assert(c, icmd.Success)
defer DelContainerForceMultyTime(c, name)

command.PouchRun("start", name).Assert(c, icmd.Success)
Expand Down

0 comments on commit c52e283

Please sign in to comment.