Sfoglia il codice sorgente

Fix flakey TestAuthZPluginAllowEventStream

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Brian Goff 9 anni fa
parent
commit
4cf9b725f2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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),