From 029c6eacd6fa2970b5a8dea0acc0deecf1efbf5b Mon Sep 17 00:00:00 2001 From: Kun Zhang Date: Wed, 23 Sep 2015 11:52:17 +0800 Subject: [PATCH] test neat Signed-off-by: Kun Zhang --- integration-cli/docker_cli_inspect_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/integration-cli/docker_cli_inspect_test.go b/integration-cli/docker_cli_inspect_test.go index ee7abde5bf..0420c788e3 100644 --- a/integration-cli/docker_cli_inspect_test.go +++ b/integration-cli/docker_cli_inspect_test.go @@ -27,8 +27,7 @@ func (s *DockerSuite) TestInspectImage(c *check.C) { func (s *DockerSuite) TestInspectInt64(c *check.C) { testRequires(c, DaemonIsLinux) - runCmd := exec.Command(dockerBinary, "run", "-d", "-m=300M", "busybox", "true") - out, _, _, err := runCommandWithStdoutStderr(runCmd) + out, _, err := dockerCmdWithError("run", "-d", "-m=300M", "busybox", "true") if err != nil { c.Fatalf("failed to run container: %v, output: %q", err, out) }