Merge pull request #172 from adshmh/fix-secret-remove-testcase-error-message-leak

fixed the output leak from the error test case for secret/remove command
This commit is contained in:
Vincent Demeester 2017-06-09 21:03:33 +02:00 committed by GitHub
commit dd585ad4fb
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)