Ver código fonte

Merge pull request #20442 from cpuguy83/fix_flakey_TestAuthZPluginAllowEventStream

Fix flakey TestAuthZPluginAllowEventStream
Brian Goff 9 anos atrás
pai
commit
e7b2523751
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      integration-cli/docker_cli_authz_unix_test.go

+ 1 - 1
integration-cli/docker_cli_authz_unix_test.go

@@ -261,8 +261,8 @@ func (s *DockerAuthzSuite) TestAuthZPluginAllowEventStream(c *check.C) {
 	// Create a container and wait for the creation events
 	out, err := s.d.Cmd("run", "-d", "busybox", "top")
 	c.Assert(err, check.IsNil, check.Commentf(out))
-
 	containerID := strings.TrimSpace(out)
+	c.Assert(s.d.waitRun(containerID), checker.IsNil)
 
 	events := map[string]chan bool{
 		"create": make(chan bool),