From e87b5d1d77281326e39da565239ebac6fe2071af Mon Sep 17 00:00:00 2001 From: Soshi Katsuta Date: Wed, 19 Aug 2015 17:47:33 +0900 Subject: [PATCH] integration-cli: fix printf verbs of wrong types Signed-off-by: Soshi Katsuta Upstream-commit: 5759b95e7e7c269af48a095773961ed8d13f8798 Component: engine --- components/engine/integration-cli/docker_cli_create_test.go | 4 ++-- components/engine/integration-cli/docker_cli_run_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/engine/integration-cli/docker_cli_create_test.go b/components/engine/integration-cli/docker_cli_create_test.go index 482e96f9dc..c1670f0088 100644 --- a/components/engine/integration-cli/docker_cli_create_test.go +++ b/components/engine/integration-cli/docker_cli_create_test.go @@ -122,7 +122,7 @@ func (s *DockerSuite) TestCreateWithPortRange(c *check.C) { c.Fatalf("Expected 1 ports binding, for the port %s but found %s", k, v) } if k.Port() != v[0].HostPort { - c.Fatalf("Expected host port %d to match published port %d", k.Port(), v[0].HostPort) + c.Fatalf("Expected host port %s to match published port %s", k.Port(), v[0].HostPort) } } @@ -161,7 +161,7 @@ func (s *DockerSuite) TestCreateWithiLargePortRange(c *check.C) { c.Fatalf("Expected 1 ports binding, for the port %s but found %s", k, v) } if k.Port() != v[0].HostPort { - c.Fatalf("Expected host port %d to match published port %d", k.Port(), v[0].HostPort) + c.Fatalf("Expected host port %s to match published port %s", k.Port(), v[0].HostPort) } } diff --git a/components/engine/integration-cli/docker_cli_run_test.go b/components/engine/integration-cli/docker_cli_run_test.go index 35af1aba30..49a6a0df49 100644 --- a/components/engine/integration-cli/docker_cli_run_test.go +++ b/components/engine/integration-cli/docker_cli_run_test.go @@ -1895,7 +1895,7 @@ func (s *DockerSuite) TestRunAllowPortRangeThroughExpose(c *check.C) { c.Fatalf("Port %d is out of range ", portnum) } if binding == nil || len(binding) != 1 || len(binding[0].HostPort) == 0 { - c.Fatalf("Port is not mapped for the port %d", port) + c.Fatalf("Port is not mapped for the port %s", port) } } }