Browse code

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 authored on 2014/08/31 22:40:23
Showing 1 changed files
... ...
@@ -20,7 +20,7 @@ func TestTopNonPrivileged(t *testing.T) {
20 20
 
21 21
 	topCmd = exec.Command(dockerBinary, "top", cleanedContainerID)
22 22
 	out2, _, err2 := runCommandWithOutput(topCmd)
23
-	errorOut(err, t, fmt.Sprintf("failed to run top: %v %v", out2, err2))
23
+	errorOut(err2, t, fmt.Sprintf("failed to run top: %v %v", out2, err2))
24 24
 
25 25
 	killCmd := exec.Command(dockerBinary, "kill", cleanedContainerID)
26 26
 	_, err = runCommand(killCmd)