Fix remove_test output duplication

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2017-06-13 13:34:52 +02:00
parent ecc8e0a204
commit dd924ebf4f
No known key found for this signature in database
GPG Key ID: 083CC6FD6EB699A3
5 changed files with 0 additions and 7 deletions

View File

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

View File

@ -1,4 +1,2 @@
Untagged: image1 Untagged: image1
Deleted: image2 Deleted: image2
Untagged: image1
Deleted: image2

View File

@ -1,2 +1 @@
NotFound:image1
NotFound:image1 NotFound:image1

View File

@ -1,2 +1 @@
Deleted: image1 Deleted: image1
Deleted: image1

View File

@ -1,2 +1 @@
Untagged: image1 Untagged: image1
Untagged: image1