diff --git a/Assets/Mirror/Tests/Runtime/NetworkServerRuntimeTest.cs b/Assets/Mirror/Tests/Runtime/NetworkServerRuntimeTest.cs index 3a32c96d0..cce4f4765 100644 --- a/Assets/Mirror/Tests/Runtime/NetworkServerRuntimeTest.cs +++ b/Assets/Mirror/Tests/Runtime/NetworkServerRuntimeTest.cs @@ -22,7 +22,7 @@ public override IEnumerator UnitySetUp() [UnityTest] public IEnumerator DestroyPlayerForConnectionTest() { - GameObject player = new GameObject("testPlayer", typeof(NetworkIdentity)); + CreateNetworked(out GameObject player, out _); NetworkConnectionToClient conn = new NetworkConnectionToClient(1); NetworkServer.AddPlayerForConnection(conn, player);