Public: anyone can read this; the crew can change it.

Revert "The HEAD-options sweep test is pinned on time, not on machine load" #15151

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

revert-14710 → main 1 commit

  • Merged. revert-14710 was merged into main as 2810021.

Review

Sign in to review this change.
1 file changed +0 −5
test/head-options-sweep.test.ts −5
@@ -14,7 +14,6 @@ import { createUser } from "../src/core/users.ts";
1414 import { setLimit } from "../src/settings/limits.ts";
1515 import { setStrangerLimits, strangerLimits } from "../src/http/strangers.ts";
1616 import { headOf, MEASURE_CAP } from "../src/http/head.ts";
17 import { pinCrawlLag } from "../src/http/crawl.ts";
1817 import { buildApiRouter, buildRouter, serve, type Servers } from "../src/http/server.ts";
1918 import { quietLogs } from "./helpers/globals.ts";
2019 import { pool } from "./helpers/sweep-clock.ts";
@@ -30,10 +29,6 @@ beforeAll(async () => {
3029 // A sweep of every route from one address is not a stranger to be throttled.
3130 const per = strangerLimits(app).perAddress;
3231 setStrangerLimits(app, { perAddress: Object.fromEntries(Object.keys(per).map((k) => [k, 100_000])) as typeof per });
33 // Nor is it a test of load shedding: on a busy machine the loop runs late,
34 // the deep-page budget is divided, and HEAD on a tree page answered 429
35 // where its GET had a 404 (#14601's check). Pinned on time, not on load.
36 pinCrawlLag(app, false);
3732 servers = await serve(app);
3833 const admin = await createUser(app.db, { origin: "seed", trusted: true, username: "alice", email: "[email protected]", password: "a-good-passphrase", adminIfFirst: true });
3934 if (!admin.ok) throw new Error(String(admin.error));

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs