mirror of
https://github.com/docker/cli.git
synced 2026-01-19 21:41:31 +03:00
fixed the output leak from secret/remove command error test case
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
Upstream-commit: 77062a09dc
Component: cli
This commit is contained in:
@@ -76,6 +76,7 @@ func TestSecretRemoveContinueAfterError(t *testing.T) {
|
||||
}, buf)
|
||||
|
||||
cmd := newSecretRemoveCommand(cli)
|
||||
cmd.SetOutput(ioutil.Discard)
|
||||
cmd.SetArgs(names)
|
||||
assert.EqualError(t, cmd.Execute(), "error removing secret: foo")
|
||||
assert.Equal(t, names, removedSecrets)
|
||||
|
||||
Reference in New Issue
Block a user