Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

test(desktop): avoid orphan reaper PID collisions (#1885)

天魔b48666a1dd23
diff --git a/apps/desktop/src/main/__tests__/claudeOrphanReaper.test.ts b/apps/desktop/src/main/__tests__/claudeOrphanReaper.test.ts
index 6a79da5e68..dcdee2f1c4 100644
--- a/apps/desktop/src/main/__tests__/claudeOrphanReaper.test.ts
+++ b/apps/desktop/src/main/__tests__/claudeOrphanReaper.test.ts
@@ -245,9 +245,9 @@ describe('reapClaudeOrphansSync', () => {
});
it('reaps dev-checkout orphans launched from apps/claude-code-bin', async () => {
- const devOrphanPid = 901;
- const worktreeOrphanPid = 902;
- const liveDevPeerPid = 903;
+ const devOrphanPid = process.pid + 10;
+ const worktreeOrphanPid = process.pid + 11;
+ const liveDevPeerPid = process.pid + 12;
const execFileSync = vi.fn((file: string) => {
if (file === 'taskkill') return '';
return [