Skip to content

Commit

Permalink
removed the output leaked from stack remove error test case
Browse files Browse the repository at this point in the history
Signed-off-by: Arash Deshmeh <[email protected]>
  • Loading branch information
adshmh committed Jun 9, 2017
1 parent a74e715 commit 852bf0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/command/stack/remove_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package stack
import (
"bytes"
"errors"
"io/ioutil"
"strings"
"testing"

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 852bf0f

Please sign in to comment.