瀏覽代碼

Avoid failing the test if container is already stopped

Signed-off-by: Simon Ferquel <simon.ferquel@docker.com>
Simon Ferquel 7 年之前
父節點
當前提交
adf75503db
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      integration-cli/docker_cli_events_unix_test.go

+ 1 - 1
integration-cli/docker_cli_events_unix_test.go

@@ -97,7 +97,7 @@ func (s *DockerSuite) TestEventsOOMDisableTrue(c *check.C) {
 	}()
 
 	c.Assert(waitRun("oomTrue"), checker.IsNil)
-	defer dockerCmd(c, "kill", "oomTrue")
+	defer dockerCmdWithResult("kill", "oomTrue")
 	containerID := inspectField(c, "oomTrue", "Id")
 
 	testActions := map[string]chan bool{