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>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-10-25 11:07:13 +00:00
1 parent a59bf587d0
commit 86f9eafc8b
1 file changed
+2 -1
+2 -1
View File
@@ -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);
});