fix(ci): fixed TestThrottler flake (#1841)

This commit is contained in:
Jarek Kowalski authored and GitHub committed 2022-03-20 20:38:32 -07:00
1 parent 3ef472248d
commit 3b45daf27a
1 file changed
+2 -2
+2 -2
View File
@@ -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)
})
}