Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Fall back to exit code 0 when restoring after the record-origin CLI test
garrytan701e3ba23ac5
diff --git a/test/url-source-origin.test.ts b/test/url-source-origin.test.tsindex bc84e9de25..d605cedd68 100644--- a/test/url-source-origin.test.ts+++ b/test/url-source-origin.test.ts@@ -202,7 +202,7 @@ for (const flavor of ['pglite', ...(databaseUrl ? ['postgres'] : [])] as const)await runRecordOrigin(engine, ['source-a', 'nope', '--local', '--apply']);expect(currentExitCode()).toBe(1);expect(await config('source-a')).toEqual({ ...URL_CONFIG, added_by_remote_caller: false });- } finally { exit.mockRestore(); errors.mockRestore(); logs.mockRestore(); _resetCliExitVerdictForTests(); process.exitCode = priorExitCode; }+ } finally { exit.mockRestore(); errors.mockRestore(); logs.mockRestore(); _resetCliExitVerdictForTests(); process.exitCode = priorExitCode ?? 0; }}), 60_000);test('--remote refuses a checkout whose clone-local attributes hide its git-lfs files, and writes nothing', () => brain(async home => {