Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test: the forget refusal test resets the process exit code to zero
garrytanfa04a5a2362d
diff --git a/test/thin-client-routing-audit.test.ts b/test/thin-client-routing-audit.test.tsindex bc4b78837f..081f6df388 100644--- a/test/thin-client-routing-audit.test.ts+++ b/test/thin-client-routing-audit.test.ts@@ -86,7 +86,7 @@ describe('thin-client routing audit — ROUTE additions call the remote op', ()try {await thinClient(() => runForget(async () => { throw new Error('local engine opened'); },['42', '--source', 'notes', '--request-id', requestId, '--json']));- } finally { final.mockRestore(); process.exitCode = priorExitCode; }+ } finally { final.mockRestore(); process.exitCode = priorExitCode ?? 0; }expect(calls).toEqual([]);const envelope = JSON.parse(docs.join(''));expect(envelope).toMatchObject({ code: 'invalid_params', fix: { argv: ['gbrain', 'forget', '42', '--request-id', requestId], next: 'run' } });