diff --git a/cli/command/image/remove_test.go b/cli/command/image/remove_test.go index ff671285e..4420b29d4 100644 --- a/cli/command/image/remove_test.go +++ b/cli/command/image/remove_test.go @@ -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) diff --git a/cli/command/image/testdata/remove-command-success.Image Deleted and Untagged.golden b/cli/command/image/testdata/remove-command-success.Image Deleted and Untagged.golden index 4efc53719..94db08448 100644 --- a/cli/command/image/testdata/remove-command-success.Image Deleted and Untagged.golden +++ b/cli/command/image/testdata/remove-command-success.Image Deleted and Untagged.golden @@ -1,4 +1,2 @@ Untagged: image1 Deleted: image2 -Untagged: image1 -Deleted: image2 diff --git a/cli/command/image/testdata/remove-command-success.Image Deleted with force option.golden b/cli/command/image/testdata/remove-command-success.Image Deleted with force option.golden index f965906f5..0d3cae73f 100644 --- a/cli/command/image/testdata/remove-command-success.Image Deleted with force option.golden +++ b/cli/command/image/testdata/remove-command-success.Image Deleted with force option.golden @@ -1,2 +1 @@ -NotFound:image1 NotFound:image1 \ No newline at end of file diff --git a/cli/command/image/testdata/remove-command-success.Image Deleted.golden b/cli/command/image/testdata/remove-command-success.Image Deleted.golden index 382724d39..445df11a9 100644 --- a/cli/command/image/testdata/remove-command-success.Image Deleted.golden +++ b/cli/command/image/testdata/remove-command-success.Image Deleted.golden @@ -1,2 +1 @@ Deleted: image1 -Deleted: image1 diff --git a/cli/command/image/testdata/remove-command-success.Image Untagged.golden b/cli/command/image/testdata/remove-command-success.Image Untagged.golden index c795dac19..ebbb4075e 100644 --- a/cli/command/image/testdata/remove-command-success.Image Untagged.golden +++ b/cli/command/image/testdata/remove-command-success.Image Untagged.golden @@ -1,2 +1 @@ Untagged: image1 -Untagged: image1