mirror of
https://github.com/docker/cli.git
synced 2026-01-15 07:40:57 +03:00
Merge pull request #7817 from cnf/fix_cli_top_test_priv
Fixed error check using the wrong error value Upstream-commit: c8999dc326c9d722386c88ba6cca219b8029452e Component: engine
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user