mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-05 23:06:17 +01:00
test: bound recovery fixture pools and fake exit timers
This commit is contained in:
1 parent
b406020d97
commit
5af87e0808
2 files changed
+2
-2
No files matched your search
@@ -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\./);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user