We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 670f97c + c26adb5 commit ceea20bCopy full SHA for ceea20b
spec/ratelimit.spec.js
@@ -81,7 +81,7 @@ describe("server rate limiting", function () {
81
82
for (let attempt = 0; attempt < 10; attempt++) {
83
const { res } = await makeRequest(app, "/pingauth");
84
- if (attempt <= rateLimit.freeRetries) {
+ if (attempt < rateLimit.freeRetries) {
85
if (res.status !== 401) {
86
throw new Error(
87
`Expected only HTTP 401 error before free retries finish`
0 commit comments