Merge pull request #185 from vdemeester/fix-image-remove-tests

Fix remove_test output duplication
This commit is contained in:
Vincent Demeester 2017-06-13 14:21:32 +02:00 committed by GitHub
commit feeeb2c550
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