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 <frank.rosquin@gmail.com>
This commit is contained in:
Frank Rosquin 2014-08-31 16:35:38 +02:00
parent 280b64bc7b
commit d93c95a332
1 changed files with 1 additions and 1 deletions

View File

@ -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)