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

fixed the output leak from error test case for config/remove

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
Upstream-commit: 006b9b126d
Component: cli
This commit is contained in:
Arash Deshmeh
2017-06-13 12:24:42 -04:00
parent 9a1d721392
commit 45b64dbaab

View File

@@ -77,6 +77,7 @@ func TestConfigRemoveContinueAfterError(t *testing.T) {
cmd := newConfigRemoveCommand(cli)
cmd.SetArgs(names)
cmd.SetOutput(ioutil.Discard)
assert.EqualError(t, cmd.Execute(), "error removing config: foo")
assert.Equal(t, names, removedConfigs)
}