From 1921753b4b30dcca4fe772e7c1b0bc3f7bb7cd62 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 2 Oct 2018 23:38:47 -0700 Subject: [PATCH] TestSwarmContainerEndpointOptions: fix debug In case of failure, stale out was printed. Fixes: 6212ea669b4e92b3 Signed-off-by: Kir Kolyshkin --- integration-cli/docker_cli_swarm_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/integration-cli/docker_cli_swarm_test.go b/integration-cli/docker_cli_swarm_test.go index b0f8fcfade..c5e3fad3ee 100644 --- a/integration-cli/docker_cli_swarm_test.go +++ b/integration-cli/docker_cli_swarm_test.go @@ -344,21 +344,21 @@ func (s *DockerSwarmSuite) TestSwarmContainerEndpointOptions(c *check.C) { c.Assert(err, checker.IsNil, check.Commentf("%s", out)) c.Assert(strings.TrimSpace(out), checker.Not(checker.Equals), "") - _, err = d.Cmd("run", "-d", "--net=foo", "--name=first", "--net-alias=first-alias", "busybox:glibc", "top") + out, err = d.Cmd("run", "-d", "--net=foo", "--name=first", "--net-alias=first-alias", "busybox:glibc", "top") c.Assert(err, checker.IsNil, check.Commentf("%s", out)) - _, err = d.Cmd("run", "-d", "--net=foo", "--name=second", "busybox:glibc", "top") + out, err = d.Cmd("run", "-d", "--net=foo", "--name=second", "busybox:glibc", "top") c.Assert(err, checker.IsNil, check.Commentf("%s", out)) - _, err = d.Cmd("run", "-d", "--net=foo", "--net-alias=third-alias", "busybox:glibc", "top") + out, err = d.Cmd("run", "-d", "--net=foo", "--net-alias=third-alias", "busybox:glibc", "top") c.Assert(err, checker.IsNil, check.Commentf("%s", out)) // ping first container and its alias, also ping third and anonymous container by its alias - _, err = d.Cmd("exec", "second", "ping", "-c", "1", "first") + out, err = d.Cmd("exec", "second", "ping", "-c", "1", "first") c.Assert(err, check.IsNil, check.Commentf("%s", out)) - _, err = d.Cmd("exec", "second", "ping", "-c", "1", "first-alias") + out, err = d.Cmd("exec", "second", "ping", "-c", "1", "first-alias") c.Assert(err, check.IsNil, check.Commentf("%s", out)) - _, err = d.Cmd("exec", "second", "ping", "-c", "1", "third-alias") + out, err = d.Cmd("exec", "second", "ping", "-c", "1", "third-alias") c.Assert(err, check.IsNil, check.Commentf("%s", out)) }