mirror of https://github.com/docker/cli.git
Merge pull request #186 from adshmh/fix-output-leak-from-config-remove-test-case
fix the output leak from error test case for config/remove
This commit is contained in:
commit
7baaa90481
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue