errorOut was using the err from the previous test.
Signed-off-by: Frank Rosquin <frank.rosquin@gmail.com>
| ... | ... |
@@ -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) |