mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #7817 from cnf/fix_cli_top_test_priv
Fixed error check using the wrong error value
This commit is contained in:
commit
c8999dc326
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ func TestTopPrivileged(t *testing.T) {
|
||||||
|
|
||||||
topCmd = exec.Command(dockerBinary, "top", cleanedContainerID)
|
topCmd = exec.Command(dockerBinary, "top", cleanedContainerID)
|
||||||
out2, _, err2 := runCommandWithOutput(topCmd)
|
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)
|
killCmd := exec.Command(dockerBinary, "kill", cleanedContainerID)
|
||||||
_, err = runCommand(killCmd)
|
_, err = runCommand(killCmd)
|
||||||
|
|
Loading…
Add table
Reference in a new issue