diff --git a/rules/manager_test.go b/rules/manager_test.go index d405075143..a63ac647e2 100644 --- a/rules/manager_test.go +++ b/rules/manager_test.go @@ -2479,7 +2479,6 @@ func TestBoundedRuleEvalConcurrency(t *testing.T) { // Evaluate groups concurrently (like they normally do). var wg sync.WaitGroup for _, group := range groups { - wg.Add(1) go func() { group.Eval(ctx, time.Now()) diff --git a/storage/remote/queue_manager_test.go b/storage/remote/queue_manager_test.go index 7708f6911b..573b1acfea 100644 --- a/storage/remote/queue_manager_test.go +++ b/storage/remote/queue_manager_test.go @@ -1596,7 +1596,9 @@ func TestCalculateDesiredShards(t *testing.T) { sout := min( // You can't send samples that don't exist so cap at the number of pending samples. - int64(m.numShards*cfg.MaxSamplesPerSend)*int64(shardUpdateDuration/(100*time.Millisecond)), pendingSamples) + int64(m.numShards*cfg.MaxSamplesPerSend)*int64(shardUpdateDuration/(100*time.Millisecond)), + pendingSamples, + ) sendSamples(sout, ts) t.Log("desiredShards", m.numShards, "pendingSamples", pendingSamples) diff --git a/tsdb/index/postings_test.go b/tsdb/index/postings_test.go index 7dffd3be9d..ef55528527 100644 --- a/tsdb/index/postings_test.go +++ b/tsdb/index/postings_test.go @@ -642,8 +642,7 @@ func TestRemovedNextStackoverflow(t *testing.T) { var full []storage.SeriesRef var remove []storage.SeriesRef - var i storage.SeriesRef - for i = range github.com / prometheus / prometheus / storage.SeriesRef(1e7) { + for i := range storage.SeriesRef(1e7) { full = append(full, i) remove = append(remove, i) }