mirror of
https://github.com/coder/code-server.git
synced 2026-05-06 12:31:58 +02:00
refactor: rateLimiter.canTry logic to check >= 1
This commit is contained in:
@@ -54,7 +54,7 @@ test.describe("login", () => {
|
||||
// The current RateLimiter allows 2 logins per minute plus
|
||||
// 12 logins per hour for a total of 14
|
||||
// See: src/node/routes/login.ts
|
||||
for (let i = 1; i <= 13; i++) {
|
||||
for (let i = 1; i <= 14; i++) {
|
||||
await page.click(".submit")
|
||||
await page.waitForLoadState("networkidle")
|
||||
// We double-check that the correct error message shows
|
||||
|
||||
Reference in New Issue
Block a user