Skip to content

Commit

Permalink
sdk/log: Fix ErrorPartialFlush flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
amanakin committed May 25, 2024
1 parent 7c5e64c commit 5011ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/log/batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func TestBatchProcessor(t *testing.T) {
require.NoError(t, b.OnEmit(ctx, Record{}))
}
assert.Eventually(t, func() bool {
return e.ExportN() > 0
return e.ExportN() > 0 && len(b.exporter.input) == cap(b.exporter.input)
}, 2*time.Second, time.Microsecond)
// 1 export being performed, 1 export in buffer chan, >1 batch
// still in queue that an attempt to flush will be made on.
Expand Down

0 comments on commit 5011ed4

Please sign in to comment.