()
| 72 | // Construct with idleTimeoutMs:0 so dropping the last client doesn't arm a real |
| 73 | // idle timer. The constructor opens no sockets/DB, so this stays a fast unit test. |
| 74 | const makeDaemon = () => new Daemon('/tmp/codegraph-reap-unit-test', { idleTimeoutMs: 0 }) as any; |
| 75 | const fakeSession = () => ({ stopped: false, stop() { this.stopped = true; } }); |
| 76 | |
| 77 | it('drops clients with a dead peer and leaves live ones attached', () => { |
no outgoing calls
no test coverage detected