From 3b45daf27a213bb33bf4f0105ffa78f2feb85681 Mon Sep 17 00:00:00 2001 From: Jarek Kowalski Date: Sun, 20 Mar 2022 20:38:32 -0700 Subject: [PATCH] fix(ci): fixed TestThrottler flake (#1841) --- repo/blob/throttling/throttler_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repo/blob/throttling/throttler_test.go b/repo/blob/throttling/throttler_test.go index 1140d40c0..b7c0b355e 100644 --- a/repo/blob/throttling/throttler_test.go +++ b/repo/blob/throttling/throttler_test.go @@ -129,7 +129,7 @@ func testRateLimiting(t *testing.T, name string, wantRate float64, worker func(t actualRate := float64(*total) / numSeconds // make sure the rate is less than target with some tiny margin of error - require.Less(t, actualRate, wantRate*1.05) - require.Greater(t, actualRate, wantRate*0.9) + require.Less(t, actualRate, wantRate*1.15) + require.Greater(t, actualRate, wantRate*0.85) }) }