diff --git a/Assets/Mirror/Tests/Editor/NetworkTransform2kTests.cs b/Assets/Mirror/Tests/Editor/NetworkTransform2kTests.cs index 38d2ed7c2..2b9cdab67 100644 --- a/Assets/Mirror/Tests/Editor/NetworkTransform2kTests.cs +++ b/Assets/Mirror/Tests/Editor/NetworkTransform2kTests.cs @@ -29,9 +29,14 @@ public class NetworkTransform2kTests : MirrorTest public override void SetUp() { // set up world with server & client + // host mode for now. + // TODO separate client & server after .spawned split. + // we can use CreateNetworkedAndSpawn that creates on sv & cl. + // then move on server, update, verify client position etc. base.SetUp(); NetworkServer.Listen(1); - ConnectClientBlockingAuthenticatedAndReady(out connectionToClient); + ConnectHostClientBlockingAuthenticatedAndReady(); + connectionToClient = NetworkServer.localConnection; // create a networked object with NetworkTransform CreateNetworkedAndSpawn(out GameObject go, out NetworkIdentity _, out component, connectionToClient);