From 45b64dbaab2c8b6675996e41933c02c0409e26e7 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 Upstream-commit: 006b9b126dca278db450d164a2f402268a545b6f Component: cli --- components/cli/cli/command/config/remove_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/components/cli/cli/command/config/remove_test.go b/components/cli/cli/command/config/remove_test.go index 84423c0254..c183a93c8b 100644 --- a/components/cli/cli/command/config/remove_test.go +++ b/components/cli/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) }