From a2da3973b2dc003756eb747bd54a51e6f5941d9c Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Mon, 12 Jan 2026 20:56:25 +0100 Subject: [PATCH] fix(test): Increase timeout values in concurrency tests (#775) --- concurrency_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/concurrency_test.go b/concurrency_test.go index 382932f..6829348 100644 --- a/concurrency_test.go +++ b/concurrency_test.go @@ -300,7 +300,7 @@ func TestWaitForWithContext(t *testing.T) { //nolint:paralleltest t.Run("counter is incremented", func(t *testing.T) { //nolint:paralleltest // t.Parallel() - testWithTimeout(t, 100*time.Millisecond) + testWithTimeout(t, 150*time.Millisecond) is := assert.New(t) counter := 0 @@ -310,9 +310,9 @@ func TestWaitForWithContext(t *testing.T) { //nolint:paralleltest return false } - iter, duration, ok := WaitForWithContext(context.Background(), alwaysFalse, 40*time.Millisecond, 10*time.Millisecond) + iter, duration, ok := WaitForWithContext(context.Background(), alwaysFalse, 80*time.Millisecond, 20*time.Millisecond) is.Equal(counter, iter, "unexpected iteration count") - is.InDelta(40*time.Millisecond, duration, float64(5*time.Millisecond)) + is.InDelta(80*time.Millisecond, duration, float64(10*time.Millisecond)) is.False(ok) })