Signed-off-by: Soshi Katsuta <katsuta_soshi@cyberagent.co.jp>
| ... | ... |
@@ -122,7 +122,7 @@ func (s *DockerSuite) TestCreateWithPortRange(c *check.C) {
|
| 122 | 122 |
c.Fatalf("Expected 1 ports binding, for the port %s but found %s", k, v)
|
| 123 | 123 |
} |
| 124 | 124 |
if k.Port() != v[0].HostPort {
|
| 125 |
- c.Fatalf("Expected host port %d to match published port %d", k.Port(), v[0].HostPort)
|
|
| 125 |
+ c.Fatalf("Expected host port %s to match published port %s", k.Port(), v[0].HostPort)
|
|
| 126 | 126 |
} |
| 127 | 127 |
} |
| 128 | 128 |
|
| ... | ... |
@@ -161,7 +161,7 @@ func (s *DockerSuite) TestCreateWithiLargePortRange(c *check.C) {
|
| 161 | 161 |
c.Fatalf("Expected 1 ports binding, for the port %s but found %s", k, v)
|
| 162 | 162 |
} |
| 163 | 163 |
if k.Port() != v[0].HostPort {
|
| 164 |
- c.Fatalf("Expected host port %d to match published port %d", k.Port(), v[0].HostPort)
|
|
| 164 |
+ c.Fatalf("Expected host port %s to match published port %s", k.Port(), v[0].HostPort)
|
|
| 165 | 165 |
} |
| 166 | 166 |
} |
| 167 | 167 |
|
| ... | ... |
@@ -1895,7 +1895,7 @@ func (s *DockerSuite) TestRunAllowPortRangeThroughExpose(c *check.C) {
|
| 1895 | 1895 |
c.Fatalf("Port %d is out of range ", portnum)
|
| 1896 | 1896 |
} |
| 1897 | 1897 |
if binding == nil || len(binding) != 1 || len(binding[0].HostPort) == 0 {
|
| 1898 |
- c.Fatalf("Port is not mapped for the port %d", port)
|
|
| 1898 |
+ c.Fatalf("Port is not mapped for the port %s", port)
|
|
| 1899 | 1899 |
} |
| 1900 | 1900 |
} |
| 1901 | 1901 |
} |