mirror of https://github.com/docker/cli.git
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:
commit
dd585ad4fb
|
@ -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