mirror of https://github.com/docker/docs.git
Merge pull request #23387 from thaJeztah/fix-TestEventsContainerWithMultiNetwork
fix TestEventsContainerWithMultiNetwork
This commit is contained in:
commit
b47bf3dc69
|
|
@ -244,12 +244,14 @@ func (s *DockerSuite) TestEventsContainerWithMultiNetwork(c *check.C) {
|
|||
out, _ := dockerCmd(c, "events", "--since", since, "--until", until, "-f", "type=network")
|
||||
netEvents := strings.Split(strings.TrimSpace(out), "\n")
|
||||
|
||||
// NOTE: order in which disconnect takes place is undetermined,
|
||||
// so don't check for the *full* name
|
||||
c.Assert(len(netEvents), checker.Equals, 2)
|
||||
c.Assert(netEvents[0], checker.Contains, "disconnect")
|
||||
c.Assert(netEvents[0], checker.Contains, "test-event-network-local-1")
|
||||
c.Assert(netEvents[0], checker.Contains, "test-event-network-local-")
|
||||
|
||||
c.Assert(netEvents[1], checker.Contains, "disconnect")
|
||||
c.Assert(netEvents[1], checker.Contains, "test-event-network-local-2")
|
||||
c.Assert(netEvents[1], checker.Contains, "test-event-network-local-")
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestEventsStreaming(c *check.C) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue