Merge pull request #171 from adshmh/fix-stack-remove-testcase-error-message-leak

removed the output leaked from stack remove error test case
This commit is contained in:
Vincent Demeester 2017-06-09 21:03:22 +02:00 committed by GitHub
commit 45b02769f9
1 changed files with 2 additions and 0 deletions

View File

@ -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")