Skip to content

Commit 4a3804c

Browse files
committed
fix bug in StartServerAndClientsWithTimeTravel
1 parent 4ef95a2 commit 4a3804c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

com.unity.netcode.gameobjects/TestHelpers/Runtime/NetcodeIntegrationTest.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,10 +1105,9 @@ protected void StartServerAndClientsWithTimeTravel()
11051105

11061106
if (m_DistributedAuthority)
11071107
{
1108-
11091108
foreach (var networkManager in m_NetworkManagers)
11101109
{
1111-
WaitForConditionOrTimeOutWithTimeTravel(() => AllPlayerObjectClonesSpawned(m_ServerNetworkManager));
1110+
WaitForConditionOrTimeOutWithTimeTravel(() => AllPlayerObjectClonesSpawned(networkManager));
11121111
AssertOnTimeout($"{nameof(CreateAndStartNewClient)} timed out waiting for all sessions to spawn Client-{networkManager.LocalClientId}'s player object!");
11131112
}
11141113
}

0 commit comments

Comments
 (0)