Skip to content

Commit f9e6f25

Browse files
authored
Merge pull request #50196 from robmry/fix_TestDaemonRestartRestoreBridgeNetwork
Fix flaky test TestDaemonRestartRestoreBridgeNetwork
2 parents 9e985bd + aac0260 commit f9e6f25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration-cli/docker_cli_network_unix_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,8 +1691,8 @@ func (s *DockerDaemonSuite) TestDaemonRestartRestoreBridgeNetwork(t *testing.T)
16911691

16921692
// start a new container, trying to publish port 80:80 should fail
16931693
out, err := s.d.Cmd("run", "-p", "80:80", "-d", "busybox", "top")
1694-
if err == nil || !strings.Contains(out, "Bind for 0.0.0.0:80 failed: port is already allocated") {
1695-
t.Fatalf("80 port is allocated to old running container, it should failed on allocating to new container")
1694+
if err == nil || !strings.Contains(out, "port is already allocated") {
1695+
t.Fatalf("Expected 'port is already allocated', got err:%v out:%s", err, out)
16961696
}
16971697

16981698
// kill old running container and try to allocate again

0 commit comments

Comments
 (0)