mirror of https://github.com/docker/cli.git
Fix remove_test output duplication
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
ecc8e0a204
commit
dd924ebf4f
|
@ -102,8 +102,6 @@ func TestNewRemoveCommandSuccess(t *testing.T) {
|
||||||
cmd.SetOutput(ioutil.Discard)
|
cmd.SetOutput(ioutil.Discard)
|
||||||
cmd.SetArgs(tc.args)
|
cmd.SetArgs(tc.args)
|
||||||
assert.NoError(t, cmd.Execute())
|
assert.NoError(t, cmd.Execute())
|
||||||
err := cmd.Execute()
|
|
||||||
assert.NoError(t, err)
|
|
||||||
actual := buf.String()
|
actual := buf.String()
|
||||||
expected := string(golden.Get(t, []byte(actual), fmt.Sprintf("remove-command-success.%s.golden", tc.name))[:])
|
expected := string(golden.Get(t, []byte(actual), fmt.Sprintf("remove-command-success.%s.golden", tc.name))[:])
|
||||||
testutil.EqualNormalizedString(t, testutil.RemoveSpace, actual, expected)
|
testutil.EqualNormalizedString(t, testutil.RemoveSpace, actual, expected)
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
Untagged: image1
|
Untagged: image1
|
||||||
Deleted: image2
|
Deleted: image2
|
||||||
Untagged: image1
|
|
||||||
Deleted: image2
|
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
NotFound:image1
|
NotFound:image1
|
||||||
NotFound:image1
|
|
|
@ -1,2 +1 @@
|
||||||
Deleted: image1
|
Deleted: image1
|
||||||
Deleted: image1
|
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
Untagged: image1
|
Untagged: image1
|
||||||
Untagged: image1
|
|
||||||
|
|
Loading…
Reference in New Issue