Skip to content

Commit 84e0bd9

Browse files
committed
Raise Playwright test harness rate limits
1 parent a24375a commit 84e0bd9

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

playwright/helpers/testServer.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,19 @@ export async function startTestServer(
3535
): Promise<TestServer> {
3636
const dataPath = await fsp.mkdtemp(path.join(os.tmpdir(), "wbo-test-data-"));
3737
const useJWT = options.useJWT ?? false;
38+
// Keep the shared Playwright harness effectively unbounded so incidental
39+
// multi-page activity in CI does not trip production-like rate limits.
40+
// Specs that exercise rate limiting must override these defaults explicitly.
3841
const env: Record<string, string | undefined> = {
3942
...process.env,
4043
PORT: "0",
4144
WBO_HISTORY_DIR: dataPath,
4245
WBO_SAVE_INTERVAL: "100",
4346
WBO_MAX_SAVE_DELAY: "100",
44-
WBO_MAX_EMIT_COUNT: "1000",
45-
WBO_MAX_EMIT_COUNT_PERIOD: "4096",
46-
WBO_MAX_DESTRUCTIVE_ACTIONS_PER_IP: "*:1000/60s anonymous:500/60s",
47-
WBO_MAX_CONSTRUCTIVE_ACTIONS_PER_IP: "*:1000/60s anonymous:500/60s",
47+
WBO_MAX_EMIT_COUNT: "100000",
48+
WBO_MAX_EMIT_COUNT_PERIOD: "60000",
49+
WBO_MAX_DESTRUCTIVE_ACTIONS_PER_IP: "*:100000/60s anonymous:100000/60s",
50+
WBO_MAX_CONSTRUCTIVE_ACTIONS_PER_IP: "*:100000/60s anonymous:100000/60s",
4851
WBO_IP_SOURCE: "X-Forwarded-For",
4952
WBO_SILENT: "true",
5053
...(options.env ?? {}),

0 commit comments

Comments
 (0)