1
0
mirror of https://github.com/docker/cli.git synced 2026-01-13 18:22:35 +03:00

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

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)