Browse code

test neat

Signed-off-by: Kun Zhang <zkazure@gmail.com>

Kun Zhang authored on 2015/09/23 12:52:17
Showing 1 changed files
... ...
@@ -27,8 +27,7 @@ func (s *DockerSuite) TestInspectImage(c *check.C) {
27 27
 
28 28
 func (s *DockerSuite) TestInspectInt64(c *check.C) {
29 29
 	testRequires(c, DaemonIsLinux)
30
-	runCmd := exec.Command(dockerBinary, "run", "-d", "-m=300M", "busybox", "true")
31
-	out, _, _, err := runCommandWithStdoutStderr(runCmd)
30
+	out, _, err := dockerCmdWithError("run", "-d", "-m=300M", "busybox", "true")
32 31
 	if err != nil {
33 32
 		c.Fatalf("failed to run container: %v, output: %q", err, out)
34 33
 	}