diff --git a/Assets/Mirror/Tests/Editor/NetworkServerTest.cs b/Assets/Mirror/Tests/Editor/NetworkServerTest.cs index 6e4aa974d..3d9812a16 100644 --- a/Assets/Mirror/Tests/Editor/NetworkServerTest.cs +++ b/Assets/Mirror/Tests/Editor/NetworkServerTest.cs @@ -959,10 +959,7 @@ public void NoExternalConnectionsTest_WithHostOnly() [Test] public void NoExternalConnectionsTest_WithHostAndConnection() { - LocalConnectionToServer connectionToServer = new LocalConnectionToServer(); - LocalConnectionToClient connectionToClient = new LocalConnectionToClient(); - connectionToServer.connectionToClient = connectionToClient; - connectionToClient.connectionToServer = connectionToServer; + CreateLocalConnectionPair(out LocalConnectionToClient connectionToClient, out _); NetworkServer.SetLocalConnection(connectionToClient); NetworkServer.connections.Add(0, connectionToClient);