From 106d8e123ec445b7ea2915e04e2e6e2aeb90ab32 Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Mon, 13 Jul 2026 05:25:11 -0400 Subject: [PATCH] Update runtime connection count integration assertion Co-authored-by: Orca --- .../remote-runtime-request-connection.integration.test.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/runtime/remote-runtime-request-connection.integration.test.ts b/src/main/runtime/remote-runtime-request-connection.integration.test.ts index 8ede941b4d5..e81b299fafd 100644 --- a/src/main/runtime/remote-runtime-request-connection.integration.test.ts +++ b/src/main/runtime/remote-runtime-request-connection.integration.test.ts @@ -478,9 +478,7 @@ describe('remote runtime request connection integration', () => { REMOTE_RUNTIME_REQUEST_TIMEOUT_MS, () => `cleanup count ${subscriptionCleanups.size}, event count ${mixedEvents.length}` ) - expect( - (server as unknown as { wsConnectionIds: Map }).wsConnectionIds.size - ).toBe(1) + expect(server.getMobileSocketWiring()?.connectionCount).toBe(1) for (const mixed of mixedSubscriptions) { mixed.close() } @@ -500,9 +498,7 @@ describe('remote runtime request connection integration', () => { ) ) ) - expect( - (server as unknown as { wsConnectionIds: Map }).wsConnectionIds.size - ).toBe(1) + expect(server.getMobileSocketWiring()?.connectionCount).toBe(1) for (const extra of extraSubscriptions) { extra.close() }