Skip to content

Commit

Permalink
remove redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Jan 19, 2025
1 parent e690f1a commit 086f77b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions utils/usage/usage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 086f77b

Please sign in to comment.