From 34ca59011db2b3db30055f4bd865042f82267ae4 Mon Sep 17 00:00:00 2001 From: make-github-pseudonymous-again <5165674+make-github-pseudonymous-again@users.noreply.github.com> Date: Tue, 21 May 2024 19:56:03 +0200 Subject: [PATCH] :microscope: test: Increase coverage of non-burst rate-limiter test. --- server/api/rateLimit.tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/api/rateLimit.tests.ts b/server/api/rateLimit.tests.ts index e091a22e3..4d5545891 100644 --- a/server/api/rateLimit.tests.ts +++ b/server/api/rateLimit.tests.ts @@ -264,7 +264,7 @@ server(__filename, () => { .expect('Content-Type', 'text/html; charset=utf-8') .expect(200); - for (const i of range(2)) { + for (const i of range(3)) { const isFirst = i === 0; if (!isFirst) { // eslint-disable-next-line no-await-in-loop @@ -275,7 +275,7 @@ server(__filename, () => { const response = await send(); assert.equal(response.text, 'OK'); } - }); + }).timeout(3000); it('should rate-limit before duration elapsed', async () => { const routes = createRouter();