From 86f9eafc8b31aa8f2236ada9696e9238c8c41a7d Mon Sep 17 00:00:00 2001 From: garrytan Date: Sun, 25 Oct 2026 11:07:13 +0000 Subject: [PATCH] test(sync-gbrain): the early autopilot refusal check matches #3377's pid-naming wording (#3360) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/gstack-gbrain-sync.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/gstack-gbrain-sync.test.ts b/test/gstack-gbrain-sync.test.ts index 2abf2ced9..32bf537c2 100644 --- a/test/gstack-gbrain-sync.test.ts +++ b/test/gstack-gbrain-sync.test.ts @@ -1183,7 +1183,8 @@ esac for (const d of [repo, bindir, home]) rmSync(d, { recursive: true, force: true }); expect(r.status).toBe(1); expect(code.ok).toBe(false); - expect(code.summary).toContain("refused: gbrain autopilot active (process:gbrain autopilot)"); + expect(code.summary).toContain("refused: gbrain autopilot active (process:gbrain autopilot pid 4242 "); + expect(code.summary).toContain("Stop autopilot, then re-run /sync-gbrain."); expect(commands).not.toMatch(/^sources (add|rename|remove) /m); expect(commands).not.toMatch(/^sync /m); });