Skip to content

Commit 77d63f2

Browse files
committed
Increase allowed time
GitHub Actions are slow
1 parent 98e86b1 commit 77d63f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/ratelimiting/RateLimiter.performance.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ t.test("check performance for first check for a key", async (t) => {
1818
const checkEnd = performance.now();
1919
const timePerCheck = (checkEnd - checkStart) / keyCount;
2020

21-
if (timePerCheck > 0.001 /* ms */) {
21+
if (timePerCheck > 0.005 /* ms */) {
2222
t.fail(`Performance test failed: ${timePerCheck}ms per check`);
2323
} else {
2424
t.pass(`Performance test passed: ${timePerCheck}ms per check`);
@@ -43,7 +43,7 @@ t.test(
4343
const checkEnd = performance.now();
4444
const timePerCheck = (checkEnd - checkStart) / keyCount;
4545

46-
if (timePerCheck > 0.001 /* ms */) {
46+
if (timePerCheck > 0.005 /* ms */) {
4747
t.fail(`Performance test failed: ${timePerCheck}ms per check`);
4848
} else {
4949
t.pass(`Performance test passed: ${timePerCheck}ms per check`);
@@ -68,7 +68,7 @@ t.test("check performance a blocked key", async (t) => {
6868
const checkEnd = performance.now();
6969
const timePerCheck = (checkEnd - checkStart) / keyCount;
7070

71-
if (timePerCheck > 0.001 /* ms */) {
71+
if (timePerCheck > 0.005 /* ms */) {
7272
t.fail(`Performance test failed: ${timePerCheck}ms per check`);
7373
} else {
7474
t.pass(`Performance test passed: ${timePerCheck}ms per check`);

0 commit comments

Comments
 (0)