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