Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusLongmuir committed Apr 30, 2024
1 parent a565961 commit 0d8773c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/3d-web-user-networking/test/UserNetworking.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
);

Expand Down Expand Up @@ -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",
);

Expand Down Expand Up @@ -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",
);

Expand All @@ -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",
);

Expand Down

0 comments on commit 0d8773c

Please sign in to comment.