Skip to content

Commit 56b951f

Browse files
authored
Merge pull request moby#30219 from tonistiigi/test-port-leak
Switch TestSwarmPublishDuplicatePorts to different ports
2 parents 4818435 + 24cd544 commit 56b951f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

integration-cli/docker_cli_swarm_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ func (s *DockerSwarmSuite) TestSwarmServicePsMultipleServiceIDs(c *check.C) {
15761576
func (s *DockerSwarmSuite) TestSwarmPublishDuplicatePorts(c *check.C) {
15771577
d := s.AddDaemon(c, true, true)
15781578

1579-
out, err := d.Cmd("service", "create", "--publish", "5000:80", "--publish", "5001:80", "--publish", "80", "--publish", "80", "busybox", "top")
1579+
out, err := d.Cmd("service", "create", "--publish", "5005:80", "--publish", "5006:80", "--publish", "80", "--publish", "80", "busybox", "top")
15801580
c.Assert(err, check.IsNil, check.Commentf(out))
15811581
id := strings.TrimSpace(out)
15821582

@@ -1588,8 +1588,8 @@ func (s *DockerSwarmSuite) TestSwarmPublishDuplicatePorts(c *check.C) {
15881588
out, err = d.Cmd("service", "inspect", "--format", "{{.Endpoint.Ports}} len={{len .Endpoint.Ports}}", id)
15891589
c.Assert(err, check.IsNil, check.Commentf(out))
15901590
c.Assert(out, checker.Contains, "len=4")
1591-
c.Assert(out, checker.Contains, "{ tcp 80 5000 ingress}")
1592-
c.Assert(out, checker.Contains, "{ tcp 80 5001 ingress}")
1591+
c.Assert(out, checker.Contains, "{ tcp 80 5005 ingress}")
1592+
c.Assert(out, checker.Contains, "{ tcp 80 5006 ingress}")
15931593
}
15941594

15951595
func (s *DockerSwarmSuite) TestSwarmJoinWithDrain(c *check.C) {

0 commit comments

Comments
 (0)