Merge pull request #7816 from cnf/fix_cli_top_test

fixed error check using the wrong error value
Upstream-commit: d301146c4b7b788f77b6ae77a574e75174a7f8d5
Component: engine
This commit is contained in:
Alexandr Morozov
2014-08-31 18:28:29 +04:00
@@ -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)