Skip to content

Commit

Permalink
Fix TestSendBlocks being flaky (#49)
Browse files Browse the repository at this point in the history
We had changed what caused it to be stable.
  • Loading branch information
vegarsti committed Jul 1, 2024
1 parent 5da0081 commit 2f77329
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ingester/mainloop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ func TestSendBlocks(t *testing.T) {
})

// Send blocks except the next block, ensure none are sent to the API
// NOTE: this size and maxBatchSize are related, because we optimize for not sending tiny batches
for _, n := range []int64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 19} {
for _, n := range []int64{2, 3, 4, 5, 6, 7, 8, 9, 10, 19} {
select {
case <-ctx.Done(): // if error group fails, its context is canceled
require.Fail(t, "context was canceled")
Expand Down

0 comments on commit 2f77329

Please sign in to comment.