From 086f77bba055b1e80aa9bc44d9cbbfbd940b5a64 Mon Sep 17 00:00:00 2001 From: attiasas Date: Sun, 19 Jan 2025 12:05:42 +0200 Subject: [PATCH] remove redundant test --- utils/usage/usage_test.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/utils/usage/usage_test.go b/utils/usage/usage_test.go index 2f07e7687..f9d649510 100644 --- a/utils/usage/usage_test.go +++ b/utils/usage/usage_test.go @@ -158,19 +158,6 @@ func createXrayUsageHandler(t *testing.T, productId, commandName, clientId strin } } -func TestReportEcosystemUsageError(t *testing.T) { - // No features - reporter := NewUsageReporter("", &config.ServerDetails{}).SetSendToArtifactory(false).SetSendToXray(false) - reporter.Report() - assert.NoError(t, reporter.WaitForResponses()) - // Empty features - reporter.Report(ReportFeature{ - FeatureId: "", - ClientId: "client", - }) - assert.Error(t, reporter.WaitForResponses()) -} - func create404UsageHandler(t *testing.T) http.HandlerFunc { return func(w http.ResponseWriter, _ *http.Request) { w.WriteHeader(http.StatusNotFound)