Skip to content

Commit ceea20b

Browse files
authored
Merge pull request #183 from TerriaJS/fix-specs
Fix specs for node-rate-limiter.
2 parents 670f97c + c26adb5 commit ceea20b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/ratelimit.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe("server rate limiting", function () {
8181

8282
for (let attempt = 0; attempt < 10; attempt++) {
8383
const { res } = await makeRequest(app, "/pingauth");
84-
if (attempt <= rateLimit.freeRetries) {
84+
if (attempt < rateLimit.freeRetries) {
8585
if (res.status !== 401) {
8686
throw new Error(
8787
`Expected only HTTP 401 error before free retries finish`

0 commit comments

Comments
 (0)