From 575a60ec92a56cd562dde6c586b0fa7095b4c520 Mon Sep 17 00:00:00 2001 From: Adam Bernot Date: Fri, 15 Aug 2025 18:56:19 +0000 Subject: [PATCH] test: fix flaky test A race condition in TestSendSamplesWithBackoffWithSampleAgeLimit was observed in CI where the sample age limit was too close to the backoff time, causing samples to be dropped intermittently. Increasing the SampleAgeLimit resolves the problem. Signed-off-by: Adam Bernot --- storage/remote/queue_manager_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/remote/queue_manager_test.go b/storage/remote/queue_manager_test.go index cb61179405..5b23515dad 100644 --- a/storage/remote/queue_manager_test.go +++ b/storage/remote/queue_manager_test.go @@ -2003,7 +2003,7 @@ func TestIsSampleOld(t *testing.T) { func TestSendSamplesWithBackoffWithSampleAgeLimit(t *testing.T) { t.Parallel() maxSamplesPerSend := 10 - sampleAgeLimit := time.Second + sampleAgeLimit := time.Second * 2 cfg := config.DefaultQueueConfig cfg.MaxShards = 1