Browse Source

Merge pull request #16507 from azurezk/testcase_nit

TestInspectInt64 to be neat
Jess Frazelle 9 years ago
parent
commit
ccba7c3e14
1 changed files with 1 additions and 2 deletions
  1. 1 2
      integration-cli/docker_cli_inspect_test.go

+ 1 - 2
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) {
 func (s *DockerSuite) TestInspectInt64(c *check.C) {
 	testRequires(c, DaemonIsLinux)
 	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 {
 	if err != nil {
 		c.Fatalf("failed to run container: %v, output: %q", err, out)
 		c.Fatalf("failed to run container: %v, output: %q", err, out)
 	}
 	}