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

Function fakeSession

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

Source from the content-addressed store, hash-verified

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', () => {
78 const d = makeDaemon();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected