Parcourir la source

test(subagent): model Claude spawn errors with failed handles

pku-xht il y a 2 mois
Parent
commit
c3a04de1cf

+ 1 - 1
packages/subagent/subagent-claude-code/tests/subagent-claude-code.spec.ts

@@ -802,7 +802,7 @@ describe('official spawn projection', () => {
   })
 
   it('emits spawn errors', async () => {
-    const child = fakeChild()
+    const child = fakeChild({ pid: -1 })
     const process = new ManagedClaudeCodeProcess(child.handle)
     const errorListener = vi.fn()
     const removed = vi.fn()