Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(upgrade): the --restart-only dry-run case starts from a clean exit verdict
garrytanf9a077d0e31d
diff --git a/test/upgrade-restart.test.ts b/test/upgrade-restart.test.tsindex 8125714b63..b989c5cab4 100644--- a/test/upgrade-restart.test.ts+++ b/test/upgrade-restart.test.ts@@ -408,6 +408,7 @@ describe('--dry-run belongs to --restart-only (#2185)', () => {const write = process.stderr.write;process.stderr.write = ((chunk: string) => { writes.push(String(chunk)); return true; }) as typeof process.stderr.write;const prevExit = process.exitCode;+ _resetCliExitVerdictForTests();try {expect(await handleRestartOnly(['--channel', 'stable'], opts)).toBe(false);expect(currentExitCode()).toBe(0);