From 5af87e08087c53d4a0f6f34d1410013f9fd3d583 Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 16 Nov 2026 21:16:42 -0600 Subject: [PATCH] test: bound recovery fixture pools and fake exit timers --- scripts/ci/stalled-file-reporter.test.mjs | 2 +- server/src/__tests__/issues-service.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci/stalled-file-reporter.test.mjs b/scripts/ci/stalled-file-reporter.test.mjs index 840cf6d5e6f..0073d532383 100644 --- a/scripts/ci/stalled-file-reporter.test.mjs +++ b/scripts/ci/stalled-file-reporter.test.mjs @@ -73,7 +73,7 @@ test("finished files and hooks count as progress", () => { test("a file that never finishes loading is named from the moment it is queued", () => { let now = 0; const lines = []; - const reporter = new StalledFileReporter({ limitMs: 1000, now: () => now, write: line => lines.push(line), exit: () => {}, root: "/repo" }); + const reporter = new StalledFileReporter({ limitMs: 1000, now: () => now, write: line => lines.push(line), exit: () => {}, root: "/repo", graceMs: 0 }); reporter.onTestModuleQueued({ moduleId: "/repo/server/src/top-level-await.test.ts" }); now = 1000; reporter.check(); assert.match(lines[0] ?? "", /^::error file=server\/src\/top-level-await\.test\.ts,.*while in: loading the file\./); diff --git a/server/src/__tests__/issues-service.test.ts b/server/src/__tests__/issues-service.test.ts index bde1ad87d66..1a231b2f4cb 100644 --- a/server/src/__tests__/issues-service.test.ts +++ b/server/src/__tests__/issues-service.test.ts @@ -4154,7 +4154,7 @@ const dependencyTestDatabaseUrl = resolveExternalTestDatabaseUrl("PAPERCLIP_ISSU beforeAll(async () => { if (!dependencyTestDatabaseUrl) tempDb = await startEmbeddedPostgresTestDatabase("paperclip-issues-blockers-"); - db = createDb(dependencyTestDatabaseUrl ?? tempDb!.connectionString, { maxConnections: 6 }); + db = createDb(dependencyTestDatabaseUrl ?? tempDb!.connectionString, { maxConnections: dependencyTestDatabaseUrl ? 4 : 6 }); svc = issueService(db); await ensureIssueRelationsTable(db); }, 20_000);