test: bound recovery fixture pools and fake exit timers

This commit is contained in:
Dotta committed 2026-11-16 21:16:42 -06:00
1 parent b406020d97
commit 5af87e0808
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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\./);
+1 -1
View File
@@ -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);