mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
280b64bc7b
commit
82c536aacd
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue