MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / makeDaemon

Function makeDaemon

__tests__/daemon-client-liveness.test.ts:74–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected