mirror of
https://github.com/kopia/kopia.git
synced 2026-10-22 06:04:47 -04:00
fix(ci): fixed TestThrottler flake (#1841)
This commit is contained in:
1 parent
3ef472248d
commit
3b45daf27a
1 file changed
+2
-2
@@ -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)
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user