Browse Source

Avoid failing the test if container is already stopped

Signed-off-by: Simon Ferquel <simon.ferquel@docker.com>
Simon Ferquel 7 năm trước cách đây
mục cha
commit
adf75503db

+ 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)
 	c.Assert(waitRun("oomTrue"), checker.IsNil)
-	defer dockerCmd(c, "kill", "oomTrue")
+	defer dockerCmdWithResult("kill", "oomTrue")
 	containerID := inspectField(c, "oomTrue", "Id")
 	containerID := inspectField(c, "oomTrue", "Id")
 
 
 	testActions := map[string]chan bool{
 	testActions := map[string]chan bool{