Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test(sync): run the rename-collision fixture serially so the Postgres arm imports on the isolated engine (#5431)

garrytanbe80a85c666d
diff --git a/test/sync-rename-collision.test.ts b/test/sync-rename-collision.test.ts
index e0cbeb9a0e..fd8890c3e4 100644
--- a/test/sync-rename-collision.test.ts
+++ b/test/sync-rename-collision.test.ts
@@ -53,7 +53,7 @@ for (const kind of backends) describe(`sync rename onto an occupied slug (${kind
writeFileSync(join(root, 'people', 'carol.md'), person('Carol', 'Carol is a person.'));
git(root, 'add', '-A'); git(root, 'commit', '-qm', 'initial');
await engine.executeRaw("INSERT INTO sources(id,name,local_path,config) VALUES($1,$1,$2,'{}')", [source, root]);
- const sync = (opts: Record<string, unknown> = {}) => performSync(engine, { repoPath: root, sourceId: source, noPull: true, noEmbed: true, noExtract: true, ...opts });
+ const sync = (opts: Record<string, unknown> = {}) => performSync(engine, { repoPath: root, sourceId: source, noPull: true, noEmbed: true, noExtract: true, concurrency: 1, ...opts });
await withEnv(env, async () => { await sync(); await run({ source, root, sync }); });
}
const page = async (source: string, slug: string) => (await engine.executeRaw<{ id: number; deleted_at: string | null; source_path: string | null; compiled_truth: string }>(