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
Upstream-commit: 7baaa90481
Component: cli
This commit is contained in:
Sebastiaan van Stijn
2017-06-13 21:04:47 +02:00
committed by GitHub

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)
}