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:
Arash Deshmeh 2017-06-09 13:21:14 -04:00
parent a74e715b1a
commit 77062a09dc
1 changed files with 1 additions and 0 deletions

View File

@ -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)