mirror of https://github.com/docker/cli.git
fixed the output leak from secret/remove command error test case
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
This commit is contained in:
parent
a74e715b1a
commit
77062a09dc
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue