Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(health-memo): reset the CLI exit verdict after each test; its runRemediate call left verdict 1 set for the next file in the same bun process (failed edge-proposals-json-bigint in CI shard 7)
time-attack655751e71e20
diff --git a/test/health-memo.test.ts b/test/health-memo.test.tsindex 862bb3ce1a..910438bb40 100644--- a/test/health-memo.test.ts+++ b/test/health-memo.test.ts@@ -16,6 +16,7 @@* these tests tell a memo hit from a recompute.*/import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, setSystemTime, test } from 'bun:test';+import { _resetCliExitVerdictForTests } from '../src/core/cli-force-exit.ts';import { PGLiteEngine } from '../src/core/pglite-engine.ts';import { operationsByName } from '../src/core/operations.ts';import type { OperationContext } from '../src/core/operations.ts';@@ -52,7 +53,7 @@ beforeEach(async () => {await seedSourceScopeFixture(engine);});-afterEach(() => setSystemTime());+afterEach(() => { setSystemTime(); _resetCliExitVerdictForTests(); });const advance = (ms: number) => { now += ms; setSystemTime(new Date(now)); };