From 3247a958722c7cffa840d620b9f61a8940b5e350 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Mon, 7 Dec 2015 08:34:18 +0100 Subject: [PATCH] Fix DockerSuite.TestVolumeCliInspectMulti Use dockerCmdWithError now that it actually returns an error code. Signed-off-by: Vincent Demeester Upstream-commit: d125ddaeda6b99d5c2c5920664a7e3baa9fb8d92 Component: engine --- components/engine/integration-cli/docker_cli_volume_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/engine/integration-cli/docker_cli_volume_test.go b/components/engine/integration-cli/docker_cli_volume_test.go index 29c554eec0..d404fe1538 100644 --- a/components/engine/integration-cli/docker_cli_volume_test.go +++ b/components/engine/integration-cli/docker_cli_volume_test.go @@ -54,7 +54,8 @@ func (s *DockerSuite) TestVolumeCliInspectMulti(c *check.C) { dockerCmd(c, "volume", "create", "--name", "test1") dockerCmd(c, "volume", "create", "--name", "test2") - out, _ := dockerCmd(c, "volume", "inspect", "--format='{{ .Name }}'", "test1", "test2", "doesntexist") + out, _, err := dockerCmdWithError("volume", "inspect", "--format='{{ .Name }}'", "test1", "test2", "doesntexist") + c.Assert(err, checker.NotNil) outArr := strings.Split(strings.TrimSpace(out), "\n") c.Assert(len(outArr), check.Equals, 3, check.Commentf("\n%s", out))