From d93c95a332b65948cf37a87a84900323657571f0 Mon Sep 17 00:00:00 2001 From: Frank Rosquin Date: Sun, 31 Aug 2014 16:35:38 +0200 Subject: [PATCH] Fixed error check using the wrong error value errorOut was using the err from the previous test. same as #7816 but on TestTopPrivileged, which I missed last time Signed-off-by: Frank Rosquin --- integration-cli/docker_cli_top_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-cli/docker_cli_top_test.go b/integration-cli/docker_cli_top_test.go index 6535473430..395871794e 100644 --- a/integration-cli/docker_cli_top_test.go +++ b/integration-cli/docker_cli_top_test.go @@ -52,7 +52,7 @@ func TestTopPrivileged(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)