From 5011ed4f9bd41e4c2699636624c200916c246075 Mon Sep 17 00:00:00 2001 From: Anton Manakin Date: Sat, 25 May 2024 22:25:54 +0300 Subject: [PATCH] sdk/log: Fix ErrorPartialFlush flaky test --- sdk/log/batch_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/log/batch_test.go b/sdk/log/batch_test.go index 2255fad02af..e34dbcf563b 100644 --- a/sdk/log/batch_test.go +++ b/sdk/log/batch_test.go @@ -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.