mirror of https://github.com/docker/cli.git
Merge pull request #185 from vdemeester/fix-image-remove-tests
Fix remove_test output duplication
This commit is contained in:
commit
feeeb2c550
|
@ -102,8 +102,6 @@ func TestNewRemoveCommandSuccess(t *testing.T) {
|
|||
cmd.SetOutput(ioutil.Discard)
|
||||
cmd.SetArgs(tc.args)
|
||||
assert.NoError(t, cmd.Execute())
|
||||
err := cmd.Execute()
|
||||
assert.NoError(t, err)
|
||||
actual := buf.String()
|
||||
expected := string(golden.Get(t, []byte(actual), fmt.Sprintf("remove-command-success.%s.golden", tc.name))[:])
|
||||
testutil.EqualNormalizedString(t, testutil.RemoveSpace, actual, expected)
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
Untagged: image1
|
||||
Deleted: image2
|
||||
Untagged: image1
|
||||
Deleted: image2
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
NotFound:image1
|
||||
NotFound:image1
|
|
@ -1,2 +1 @@
|
|||
Deleted: image1
|
||||
Deleted: image1
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
Untagged: image1
|
||||
Untagged: image1
|
||||
|
|
Loading…
Reference in New Issue