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)