Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: reset the CLI exit verdict before each memory-proposals command run

garrytanbd13aff65e29
diff --git a/test/serve-http-memory-proposals.test.ts b/test/serve-http-memory-proposals.test.ts
index ed587ccb5b..1c11635e1d 100644
--- a/test/serve-http-memory-proposals.test.ts
+++ b/test/serve-http-memory-proposals.test.ts
@@ -108,6 +108,7 @@ for (const kind of testBackends()) {
const log = console.log, err = console.error;
console.log = (...a: unknown[]) => { lines.push(a.join(' ')); };
console.error = (...a: unknown[]) => { lines.push(a.join(' ')); };
+ setCliExitVerdict(0);
try { await runMemoryProposals(engine, args); return { out: lines.join('\n'), exit: currentExitCode() }; }
finally { console.log = log; console.error = err; setCliExitVerdict(0); }
}