From 006b9b126dca278db450d164a2f402268a545b6f Mon Sep 17 00:00:00 2001 From: Arash Deshmeh Date: Tue, 13 Jun 2017 12:24:42 -0400 Subject: [PATCH] fixed the output leak from error test case for config/remove Signed-off-by: Arash Deshmeh --- cli/command/config/remove_test.go | 1 + 1 file changed, 1 insertion(+) 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) }