Преглед на файлове

test(web): tighten the startup describe budget to the mirror's two reads

Yichen Jiang преди 2 месеца
родител
ревизия
6b027e9cec
променени са 1 файла, в които са добавени 5 реда и са изтрити 7 реда
  1. 5 7
      apps/web/tests/startup-rpc-budget.e2e.ts

+ 5 - 7
apps/web/tests/startup-rpc-budget.e2e.ts

@@ -12,14 +12,12 @@ import { launchWebScaffold, watchConsole, type WebScaffold } from './scaffold.ts
 import { newEnglishPage } from './support.ts'
 
 /**
- * Itemized so the budget stays explainable. The mirror reads twice: once
- * eagerly at bind time over HTTP, and once on the first-connection reset —
- * that second read closes the window where a document commit lands between
- * the eager read and the SSE subscription and its invalidation is lost.
- * Beside it, the direct callers not yet migrated: models onboarding (1) +
- * agent-preset settings row on reset (1). Their migration tightens this to 2.
+ * Both reads are the mirror's: once eagerly at bind time over HTTP, and once
+ * on the first-connection reset — that second read closes the window where a
+ * document commit lands between the eager read and the SSE subscription and
+ * its invalidation is lost. Every settings consumer derives from these two.
  */
-const DESCRIBE_BUDGET = 4
+const DESCRIBE_BUDGET = 2
 
 let scaffold: WebScaffold
 let browser: Browser