Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Reset the process exit code after the upkeep tests so the purge refusal cases don't fail the test file

garrytan7e36537c7f63
diff --git a/test/maintenance-unattended.test.ts b/test/maintenance-unattended.test.ts
index 8155c2856b..e5914bc7b6 100644
--- a/test/maintenance-unattended.test.ts
+++ b/test/maintenance-unattended.test.ts
@@ -87,6 +87,8 @@ for (const kind of testBackends()) {
});
afterAll(async () => {
+ _resetCliExitVerdictForTests();
+ process.exitCode = 0;
stopObserving();
__setEmbedTransportForTests(null);
resetGateway();