diff --git a/pkg/ratelimit/concurrency_limiter_test.go b/pkg/ratelimit/concurrency_limiter_test.go index a397b6ac50f..26e3e9efb92 100644 --- a/pkg/ratelimit/concurrency_limiter_test.go +++ b/pkg/ratelimit/concurrency_limiter_test.go @@ -122,6 +122,6 @@ func TestConcurrencyLimiterAcquire(t *testing.T) { } wg.Wait() // We should have 20 tasks running concurrently, so it should take at least 50ms to complete - require.Greater(t, time.Since(start).Milliseconds(), int64(50)) + require.GreaterOrEqual(t, time.Since(start).Milliseconds(), int64(50)) require.Equal(t, int64(100), sum) }