From f004ea1e26483f78f85d8e53b5a6d02894c3fc99 Mon Sep 17 00:00:00 2001 From: Michael Wan Date: Tue, 15 May 2018 23:03:15 -0400 Subject: [PATCH] test: fix cli_ps_test failed Signed-off-by: Michael Wan --- test/cli_ps_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cli_ps_test.go b/test/cli_ps_test.go index 38ee7a9c9..e03261cea 100644 --- a/test/cli_ps_test.go +++ b/test/cli_ps_test.go @@ -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) @@ -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) @@ -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)