Skip to content

Commit 0c28a04

Browse files
author
Peter Steinberger
committed
test(gateway): mock orphan recovery in startup proof
1 parent 81f82c6 commit 0c28a04

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/gateway/server-startup-model-runtime.event-loop.test.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ vi.mock("../plugins/provider-discovery.js", async (importOriginal) => {
5151
};
5252
});
5353

54+
// Session orphan recovery has separate owner coverage; avoid loading its broad
55+
// cold startup graph inside this timed model-runtime responsiveness proof.
56+
vi.mock("../agents/main-session-restart-recovery-marking.js", () => ({
57+
markStartupOrphanedMainSessionsForRecovery: vi.fn(async () => ({ marked: 0, skipped: 0 })),
58+
}));
59+
5460
const { resetPreparedModelRuntimeSnapshotsForTest } =
5561
await import("../agents/prepared-model-runtime.test-support.js");
5662
const { writePersistedAuthProfileStoreRaw } = await import("../agents/auth-profiles/sqlite.js");

0 commit comments

Comments
 (0)