opentelemetry-go icon indicating copy to clipboard operation
opentelemetry-go copied to clipboard

[WIP] sdk/log: Fix TestBatchProcessor/ForceFlush/ErrorPartialFlush flaky test

Open amanakin opened this issue 8 months ago • 1 comments

Fix flaky test issued in #5342

Run of go test -v -timeout 10s -short -count=10000 ./... -run='TestBatchProcessor/ForceFlush/ErrorPartialFlush' Before: Failed with panic: test timed out after 10s After: Passed

Problem was with bufferExporter.input chan. In test expected:

1 export being performed, 1 export in buffer chan, >1 batch

But buffer chan wasn't checked. Now we ensure, that record is in buffer chan

amanakin avatar May 25 '24 19:05 amanakin