From 852bf0f96d2838cc57713f8b285b23a8f9946f96 Mon Sep 17 00:00:00 2001 From: Arash Deshmeh Date: Fri, 9 Jun 2017 11:58:42 -0400 Subject: [PATCH] removed the output leaked from stack remove error test case Signed-off-by: Arash Deshmeh --- cli/command/stack/remove_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/command/stack/remove_test.go b/cli/command/stack/remove_test.go index d6efb90106..05092d84ac 100644 --- a/cli/command/stack/remove_test.go +++ b/cli/command/stack/remove_test.go @@ -3,6 +3,7 @@ package stack import ( "bytes" "errors" + "io/ioutil" "strings" "testing" @@ -116,6 +117,7 @@ func TestContinueAfterError(t *testing.T) { }, } cmd := newRemoveCommand(test.NewFakeCli(cli, &bytes.Buffer{})) + cmd.SetOutput(ioutil.Discard) cmd.SetArgs([]string{"foo", "bar"}) assert.EqualError(t, cmd.Execute(), "Failed to remove some resources from stack: foo")