diff --git a/Assets/Mirror/Tests/Editor/ClientSceneTests_OnSpawn.cs b/Assets/Mirror/Tests/Editor/ClientSceneTests_OnSpawn.cs index 0d87c830e..b24c3de54 100644 --- a/Assets/Mirror/Tests/Editor/ClientSceneTests_OnSpawn.cs +++ b/Assets/Mirror/Tests/Editor/ClientSceneTests_OnSpawn.cs @@ -635,7 +635,7 @@ public void ApplyPayload_LocalPlayerAddsIdentityToConnection() NetworkClient.ApplySpawnPayload(identity, msg); Assert.That(NetworkClient.localPlayer, Is.EqualTo(identity)); - Assert.That(NetworkClient.readyConnection.identity, Is.EqualTo(identity)); + Assert.That(NetworkClient.connection.identity, Is.EqualTo(identity)); } [Test] diff --git a/Assets/Mirror/Tests/Editor/RemoteTestBase.cs b/Assets/Mirror/Tests/Editor/RemoteTestBase.cs index 23545cbd0..b4043b03d 100644 --- a/Assets/Mirror/Tests/Editor/RemoteTestBase.cs +++ b/Assets/Mirror/Tests/Editor/RemoteTestBase.cs @@ -61,7 +61,7 @@ protected T CreateHostObject(bool spawnWithAuthority) where T : NetworkBehavi NetworkIdentity netIdentity = gameObject.AddComponent(); // host mode object needs a connection to server for commands to work - netIdentity.connectionToServer = NetworkClient.readyConnection; + netIdentity.connectionToServer = NetworkClient.connection; T behaviour = gameObject.AddComponent();