From 4feda02f1a845b3e336c01dbca66b69b3cd0ffa8 Mon Sep 17 00:00:00 2001 From: Ace-Tang Date: Wed, 25 Apr 2018 21:26:21 +0800 Subject: [PATCH] test: fix ci fail cause container run and stop Signed-off-by: Ace-Tang --- test/cli_update_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cli_update_test.go b/test/cli_update_test.go index e011790c2..770a0e50e 100644 --- a/test/cli_update_test.go +++ b/test/cli_update_test.go @@ -210,7 +210,7 @@ func (suite *PouchUpdateSuite) TestUpdateContainerEnv(c *check.C) { func (suite *PouchUpdateSuite) TestUpdateRunningContainerEnv(c *check.C) { name := "update-running-container-env" - command.PouchRun("run", "-d", "-m", "300M", "--name", name, busyboxImage).Assert(c, icmd.Success) + command.PouchRun("run", "-d", "-m", "300M", "--name", name, busyboxImage, "top").Assert(c, icmd.Success) res := command.PouchRun("update", "--env", "foo=bar", name) c.Assert(res.Error, check.NotNil) @@ -228,7 +228,7 @@ func (suite *PouchUpdateSuite) TestUpdateRunningContainerEnv(c *check.C) { func (suite *PouchUpdateSuite) TestUpdateContainerLabel(c *check.C) { name := "update-container-label" - command.PouchRun("run", "-d", "-m", "300M", "--name", name, busyboxImage).Assert(c, icmd.Success) + command.PouchRun("run", "-d", "-m", "300M", "--name", name, busyboxImage, "top").Assert(c, icmd.Success) command.PouchRun("update", "--label", "foo=bar", name).Assert(c, icmd.Success)