From 0d8773c15fe80af1a51e5c0deee1d67e3f44c905 Mon Sep 17 00:00:00 2001 From: Marcus Longmuir Date: Tue, 30 Apr 2024 22:55:30 +0300 Subject: [PATCH] Fix tests --- .../3d-web-user-networking/test/UserNetworking.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/3d-web-user-networking/test/UserNetworking.test.ts b/packages/3d-web-user-networking/test/UserNetworking.test.ts index 2acbc54f..02d999a3 100644 --- a/packages/3d-web-user-networking/test/UserNetworking.test.ts +++ b/packages/3d-web-user-networking/test/UserNetworking.test.ts @@ -91,7 +91,7 @@ describe("UserNetworking", () => { expect(await user1IdentityPromise).toEqual(1); await waitUntil( - () => (server as any).allClients.size === 1, + () => (server as any).allClientsById.size === 1, "wait for server to see the presence of user 1", ); @@ -138,7 +138,7 @@ describe("UserNetworking", () => { expect(await user2IdentityPromise).toEqual(2); await waitUntil( - () => (server as any).allClients.size === 2, + () => (server as any).allClientsById.size === 2, "wait for server to see the presence of user 2", ); @@ -209,7 +209,7 @@ describe("UserNetworking", () => { user2.stop(); await waitUntil( - () => (server as any).allClients.size === 1, + () => (server as any).allClientsById.size === 1, "wait for server to see the removal of user 2", ); @@ -221,7 +221,7 @@ describe("UserNetworking", () => { user1.stop(); await waitUntil( - () => (server as any).allClients.size === 0, + () => (server as any).allClientsById.size === 0, "wait for server to see the removal of user 1", );