Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(#6712 PR 4b): reconcile owner journey reports the CLI output when a pending exit is not 10
garrytan58c5eac35174
diff --git a/test/reconcile-owner-journey.serial.test.ts b/test/reconcile-owner-journey.serial.test.tsindex 895f8fd5b4..e4a2db7d75 100644--- a/test/reconcile-owner-journey.serial.test.ts+++ b/test/reconcile-owner-journey.serial.test.ts@@ -191,7 +191,7 @@ for (const transport of ['stdio', 'http'] as const) {held.lock = await acquireNativeLock(binding.coordination_path!, { timeoutMs: 1000 });expect(held.lock).not.toBeNull();const pending = await reconcile(applyArgs);- expect(pending.exitCode).toBe(PENDING_WRITE_EXIT_CODE); // #5232: admitted, still pending+ expect(pending.exitCode, `${pending.stdout}\n${pending.stderr}`).toBe(PENDING_WRITE_EXIT_CODE); // #5232: admitted, still pendingexpect(JSON.parse(pending.stdout)).toMatchObject({ error: 'write_pending', write_request: { request_id: reconcileId } });expect(JSON.parse(pending.stdout).write_request.state).not.toBe('committed');privateSummary(pending);@@ -200,7 +200,7 @@ for (const transport of ['stdio', 'http'] as const) {expect(pendingReceipt.request_id).toBe(reconcileId);expect(pendingReceipt.state).not.toBe('committed');const pendingReplay = await reconcile(applyArgs);- expect(pendingReplay.exitCode).toBe(PENDING_WRITE_EXIT_CODE);+ expect(pendingReplay.exitCode, `${pendingReplay.stdout}\n${pendingReplay.stderr}\nowner: ${ownerStderr.slice(-4000)}`).toBe(PENDING_WRITE_EXIT_CODE);expect(JSON.parse(pendingReplay.stdout)).toMatchObject({ error: 'write_pending', write_request: {request_id: reconcileId, created_at: pendingReceipt.created_at,} });