test: dedupe heartbeat stability mock read

This commit is contained in:
Peter Steinberger
2026-05-13 08:38:57 +01:00
parent e2ced4cb53
commit 17fe41a4b9

View File

@@ -29,7 +29,7 @@ type HeartbeatReplyContext = {
};
function replyCall(replySpy: { mock: { calls: unknown[][] } }, index = 0): HeartbeatReplyContext {
return (replySpy.mock.calls.at(index)?.at(0) ?? {}) as HeartbeatReplyContext;
return (replySpy.mock.calls[index]?.at(0) ?? {}) as HeartbeatReplyContext;
}
describe("runHeartbeatOnce isolated session key stability (#59493)", () => {