Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: retired-wire-field case starts from a fresh delegated-sync runner (any earlier runServe shutdown in the process leaves it shutting down)

garrytan98a3f0af0383
diff --git a/test/sync-flag-table-6712.test.ts b/test/sync-flag-table-6712.test.ts
index 8e275c1178..8defbeea8b 100644
--- a/test/sync-flag-table-6712.test.ts
+++ b/test/sync-flag-table-6712.test.ts
@@ -99,6 +99,8 @@ test('a retired wire field is never in the table and is accepted, dropped and na
const lines: string[] = [];
const write = process.stderr.write.bind(process.stderr);
process.stderr.write = ((chunk: string) => { lines.push(String(chunk)); return true; }) as typeof process.stderr.write;
+ // A runServe shutdown earlier in this process (another file) leaves the runner shutting down: start from a fresh runner.
+ __resetDelegatedSyncForTests();
try {
const started = await startDelegatedSync(engine, { sourceId: 'missing-source', dryRun: true, explicitProcessing: ['noEmbed'], timeoutSeconds: 5 }, randomUUID());
expect(started.ok).toBe(true);