mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkServerTest: reuse CreateLocalConnectionPair
This commit is contained in:
parent
bf7250c096
commit
855e0017c8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user