1
0
mirror of https://github.com/docker/cli.git synced 2026-01-19 21:41:31 +03:00

fixed the output leak from secret/remove command error test case

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
Upstream-commit: 77062a09dc
Component: cli
This commit is contained in:
Arash Deshmeh
2017-06-09 13:21:14 -04:00
parent 81261f8161
commit 15c3a892ca

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)