mirror of https://github.com/docker/cli.git
removed the output leaked from stack remove error test case
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
This commit is contained in:
parent
a74e715b1a
commit
852bf0f96d
|
@ -3,6 +3,7 @@ package stack
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"errors"
|
"errors"
|
||||||
|
"io/ioutil"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
@ -116,6 +117,7 @@ func TestContinueAfterError(t *testing.T) {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
cmd := newRemoveCommand(test.NewFakeCli(cli, &bytes.Buffer{}))
|
cmd := newRemoveCommand(test.NewFakeCli(cli, &bytes.Buffer{}))
|
||||||
|
cmd.SetOutput(ioutil.Discard)
|
||||||
cmd.SetArgs([]string{"foo", "bar"})
|
cmd.SetArgs([]string{"foo", "bar"})
|
||||||
|
|
||||||
assert.EqualError(t, cmd.Execute(), "Failed to remove some resources from stack: foo")
|
assert.EqualError(t, cmd.Execute(), "Failed to remove some resources from stack: foo")
|
||||||
|
|
Loading…
Reference in New Issue