diff --git a/src/main/runtime/orchestration/mailbox/routing/slept-mailbox-wake.test.ts b/src/main/runtime/orchestration/mailbox/routing/slept-mailbox-wake.test.ts index d5cd66a62b6..7c18ebe86e1 100644 --- a/src/main/runtime/orchestration/mailbox/routing/slept-mailbox-wake.test.ts +++ b/src/main/runtime/orchestration/mailbox/routing/slept-mailbox-wake.test.ts @@ -583,7 +583,23 @@ it.each([10, 100])( newest.mock.results.filter((result) => result.value !== undefined).length ).toBeLessThanOrEqual(3) expect(newest).toHaveBeenCalled() - session = { ...session, sleepingAgentSessionsByPaneKey: {} } + session = { + ...session, + sleepingAgentSessionsByPaneKey: Object.fromEntries( + Object.keys(records).map((key) => [ + key, + new Proxy( + { ...record, paneKey: key }, + { + get(target, property, receiver) { + visits++ + return Reflect.get(target, property, receiver) + } + } + ) + ]) + ) + } sessionWritten('local') await settled() visits = 0