(m: CallMsg)
| 140 | it('fails a poison call gracefully without wedging the pool', async () => { |
| 141 | // This specific call always crashes its worker; a normal call still works. |
| 142 | const poison = (m: CallMsg) => m.toolName === 'codegraph_explore'; |
| 143 | const pool = new QueryPool({ |
| 144 | root: '/x', size: 3, maxRetries: 1, |
| 145 | createWorker: () => new FakeWorker((m) => (poison(m) ? { crash: true } : { result: ok(`ok:${m.id}`) })), |