Skip to content

Commit 0f45550

Browse files
committed
test(gateway): drop the shared fresh-session mock helper superseded by the test-local mock
1 parent 6fc95a9 commit 0f45550

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

‎src/gateway/server-methods/deleted-agent-guard.test-helpers.ts‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,6 @@ export function resetDeletedAgentSessionMocks(): void {
2424
deletedAgentSessionMocks.resolveDeletedAgentIdFromSessionKey.mockReset();
2525
}
2626

27-
/** Stubs a session key with no durable entry yet (no completed first turn). */
28-
export function mockSessionWithoutDurableEntry(key = "agent:main:fresh"): string {
29-
deletedAgentSessionMocks.loadSessionEntry.mockReturnValue({
30-
cfg: {},
31-
canonicalKey: key,
32-
storePath: "/tmp/sessions.json",
33-
entry: undefined,
34-
});
35-
deletedAgentSessionMocks.resolveDeletedAgentIdFromSessionKey.mockReturnValue(undefined);
36-
return key;
37-
}
38-
3927
/** Stubs a session that resolves to an agent id no longer present in config. */
4028
export function mockDeletedAgentSession(orphanKey = "agent:deleted-agent:main"): string {
4129
deletedAgentSessionMocks.loadSessionEntry.mockReturnValue({

0 commit comments

Comments
 (0)