Skip to content

Commit

Permalink
test: fix flaky TestAppenderFlushMetric (#178)
Browse files Browse the repository at this point in the history
Fixes the flaky `TestAppenderFlushMetric` test by increasing the number
of events sent to they will always span two bulk requests in size.

Signed-off-by: Marc Lopez Rubio <[email protected]>
  • Loading branch information
marclop authored Jun 6, 2024
1 parent 57f02c6 commit a158b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ func TestAppenderFlushMetric(t *testing.T) {
case <-time.After(50 * time.Millisecond):
}

docs := 10
docs := 12
for i := 0; i < docs; i++ {
addMinimalDoc(t, indexer, fmt.Sprintf("logs-foo-testing-%d", i))
}
Expand Down

0 comments on commit a158b6d

Please sign in to comment.