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:
Sebastiaan van Stijn 2017-06-13 21:04:47 +02:00 committed by GitHub
commit 7baaa90481
1 changed files with 1 additions and 0 deletions

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