Skip to content

Commit

Permalink
🔬 test: Increase coverage of non-burst rate-limiter test.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed May 21, 2024
1 parent 3c1a1e4 commit 34ca590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/api/rateLimit.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
Expand Down

0 comments on commit 34ca590

Please sign in to comment.