From 37d01fdd4ac7449ca7958ea8c2e76250a6e2478c Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 12 May 2026 23:29:04 +0100 Subject: [PATCH] test: dedupe server channels mock reads --- src/gateway/server-channels.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gateway/server-channels.test.ts b/src/gateway/server-channels.test.ts index 216366ded98..ac7ffc42850 100644 --- a/src/gateway/server-channels.test.ts +++ b/src/gateway/server-channels.test.ts @@ -125,7 +125,7 @@ async function waitForMicrotaskCondition( } function firstSleepWithAbortCall(): [number, AbortSignal | undefined] { - const call = hoisted.sleepWithAbort.mock.calls.at(0); + const call = hoisted.sleepWithAbort.mock.calls[0]; if (!call) { throw new Error("expected sleepWithAbort call"); } @@ -135,7 +135,7 @@ function firstSleepWithAbortCall(): [number, AbortSignal | undefined] { function firstStartAccountContext( startAccount: ReturnType, ): ChannelGatewayContext { - const ctx = startAccount.mock.calls.at(0)?.at(0); + const ctx = startAccount.mock.calls[0]?.[0]; if (!ctx || typeof ctx !== "object") { throw new Error("expected channel start context"); }