Skip to content

Commit

Permalink
tests: ignore copylocks errors a different way
Browse files Browse the repository at this point in the history
  • Loading branch information
arcln committed May 23, 2023
1 parent 527edc7 commit 7685756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ func testRequest(t *testing.T, exporter *Exporter, cb func(metrics []model.Metri
break
}

//nolint:copylocks
//nolint:govet
metrics = append(metrics, metric)
}

Expand All @@ -1013,7 +1013,7 @@ func testRequest(t *testing.T, exporter *Exporter, cb func(metrics []model.Metri
}

func getMetricsForName(metrics []model.MetricFamily, name string) []*model.Metric {
//nolint:copylocks
//nolint:govet
for _, metric := range metrics {
if metric.GetName() == name {
return metric.GetMetric()
Expand Down

0 comments on commit 7685756

Please sign in to comment.