From 77062a09dc777df35100fd2251e22fbee6cc9b5e Mon Sep 17 00:00:00 2001 From: Arash Deshmeh Date: Fri, 9 Jun 2017 13:21:14 -0400 Subject: [PATCH] fixed the output leak from secret/remove command error test case Signed-off-by: Arash Deshmeh --- cli/command/secret/remove_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/command/secret/remove_test.go b/cli/command/secret/remove_test.go index b6085c9890..08443ec9ae 100644 --- a/cli/command/secret/remove_test.go +++ b/cli/command/secret/remove_test.go @@ -76,6 +76,7 @@ func TestSecretRemoveContinueAfterError(t *testing.T) { }, buf) cmd := newSecretRemoveCommand(cli) + cmd.SetOutput(ioutil.Discard) cmd.SetArgs(names) assert.EqualError(t, cmd.Execute(), "error removing secret: foo") assert.Equal(t, names, removedSecrets)