Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test(claude-cli): reset the gateway in afterAll for the isolation lint (#6523)

garrytan5dfe2caa77aa
diff --git a/test/claude-cli-output-cap.test.ts b/test/claude-cli-output-cap.test.ts
index 14a0a5eaee..9969a56237 100644
--- a/test/claude-cli-output-cap.test.ts
+++ b/test/claude-cli-output-cap.test.ts
@@ -214,6 +214,7 @@ describe('escalation ladders through the gateway with the stub transport', () =>
}, 120_000);
afterEach(resetGateway);
afterAll(async () => {
+ resetGateway();
for (const { engine } of engines) await engine.disconnect();
await closePostgres?.();
rmSync(dbDir, { recursive: true, force: true });