diff --git a/cmd/argocd/commands/app_test.go b/cmd/argocd/commands/app_test.go index 81436232afdc5..2a1ecd71c9f04 100644 --- a/cmd/argocd/commands/app_test.go +++ b/cmd/argocd/commands/app_test.go @@ -13,8 +13,6 @@ import ( "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/assert" - "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1" ) @@ -640,37 +638,3 @@ func TestPrintApplicationNames(t *testing.T) { t.Fatalf("Incorrect print params output %q, should be %q", output, expectation) } } - -func TestPrintApplicationHistoryTable(t *testing.T) { - histories := []v1alpha1.RevisionHistory{ - { - ID: 1, - Source: v1alpha1.ApplicationSource{ - TargetRevision: "1", - }, - }, - { - ID: 2, - Source: v1alpha1.ApplicationSource{ - TargetRevision: "2", - }, - }, - { - ID: 3, - Source: v1alpha1.ApplicationSource{ - TargetRevision: "3", - }, - }, - } - - output, _ := captureOutput(func() error { - printApplicationHistoryTable(histories) - return nil - }) - - expectation := "ID DATE REVISION\n1 0001-01-01 00:00:00 +0000 UTC 1\n2 0001-01-01 00:00:00 +0000 UTC 2\n3 0001-01-01 00:00:00 +0000 UTC 3\n" - - if output != expectation { - t.Fatalf("Incorrect print operation output %q, should be %q", output, expectation) - } -} diff --git a/test/e2e/fixture/project/actions.go b/test/e2e/fixture/project/actions.go index 1b019e7078082..3123da3f43768 100644 --- a/test/e2e/fixture/project/actions.go +++ b/test/e2e/fixture/project/actions.go @@ -6,11 +6,6 @@ import ( "github.com/stretchr/testify/require" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1" - "github.com/argoproj/argo-cd/v2/test/e2e/fixture" - "github.com/stretchr/testify/require" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1" "github.com/argoproj/argo-cd/v2/test/e2e/fixture" )