瀏覽代碼

fixed error check using the wrong error value

errorOut was using the err from the previous test.

Signed-off-by: Frank Rosquin <frank.rosquin@gmail.com>
Frank Rosquin 11 年之前
父節點
當前提交
82c536aacd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      integration-cli/docker_cli_top_test.go

+ 1 - 1
integration-cli/docker_cli_top_test.go

@@ -20,7 +20,7 @@ func TestTopNonPrivileged(t *testing.T) {
 
 	topCmd = exec.Command(dockerBinary, "top", cleanedContainerID)
 	out2, _, err2 := runCommandWithOutput(topCmd)
-	errorOut(err, t, fmt.Sprintf("failed to run top: %v %v", out2, err2))
+	errorOut(err2, t, fmt.Sprintf("failed to run top: %v %v", out2, err2))
 
 	killCmd := exec.Command(dockerBinary, "kill", cleanedContainerID)
 	_, err = runCommand(killCmd)