There is an issue with the ports leaking to other tests.
This is a workaround until the actual problem is addressed.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
| ... | ... |
@@ -1576,7 +1576,7 @@ func (s *DockerSwarmSuite) TestSwarmServicePsMultipleServiceIDs(c *check.C) {
|
| 1576 | 1576 |
func (s *DockerSwarmSuite) TestSwarmPublishDuplicatePorts(c *check.C) {
|
| 1577 | 1577 |
d := s.AddDaemon(c, true, true) |
| 1578 | 1578 |
|
| 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")
|
|
| 1580 | 1580 |
c.Assert(err, check.IsNil, check.Commentf(out)) |
| 1581 | 1581 |
id := strings.TrimSpace(out) |
| 1582 | 1582 |
|
| ... | ... |
@@ -1588,8 +1588,8 @@ func (s *DockerSwarmSuite) TestSwarmPublishDuplicatePorts(c *check.C) {
|
| 1588 | 1588 |
out, err = d.Cmd("service", "inspect", "--format", "{{.Endpoint.Ports}} len={{len .Endpoint.Ports}}", id)
|
| 1589 | 1589 |
c.Assert(err, check.IsNil, check.Commentf(out)) |
| 1590 | 1590 |
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}")
|
|
| 1593 | 1593 |
} |
| 1594 | 1594 |
|
| 1595 | 1595 |
func (s *DockerSwarmSuite) TestSwarmJoinWithDrain(c *check.C) {
|