diff --git a/cli/command/config/remove_test.go b/cli/command/config/remove_test.go index 84423c0254..c183a93c8b 100644 --- a/cli/command/config/remove_test.go +++ b/cli/command/config/remove_test.go @@ -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) }