Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: Postgres doctor golden carries parked_groups; the #6828 harness reads upgrade state under GBRAIN_HOME

garrytand640acd3d200
diff --git a/test/autopilot-unpublished-target-6828.test.ts b/test/autopilot-unpublished-target-6828.test.ts
index d54e88bd31..1a5d97c74e 100644
--- a/test/autopilot-unpublished-target-6828.test.ts
+++ b/test/autopilot-unpublished-target-6828.test.ts
@@ -155,7 +155,7 @@ async function run(h: Harness, script: string, env: Record<string, string> = {})
calls: readFileSync(h.argvLog, 'utf8').split('\n').filter(Boolean),
fetched: JSON.parse(/FETCHED (.*)/.exec(out)?.[1] ?? '[]') as string[],
cache: existsSync(cachePath) ? readFileSync(cachePath, 'utf8').trim() : null,
- upgradeState: existsSync(join(h.root, '.gbrain', 'upgrade-state.json')),
+ upgradeState: existsSync(join(h.home, '.gbrain', 'upgrade-state.json')),
justUpgraded: existsSync(join(h.home, '.gbrain', 'just-upgraded-from')),
};
}
diff --git a/test/fixtures/goldens/doctor/json-postgres-fresh.json b/test/fixtures/goldens/doctor/json-postgres-fresh.json
index c0a8a7eb7c..a332f77889 100644
--- a/test/fixtures/goldens/doctor/json-postgres-fresh.json
+++ b/test/fixtures/goldens/doctor/json-postgres-fresh.json
@@ -924,6 +924,7 @@
"git_push_holds": [],
"inspected": 0,
"parked_effects": 0,
+ "parked_groups": [],
"truncated": false
},
"elapsed_ms": "<volatile>",