NetworkIdentityTests: reuse CreateLocalConnectionPair

This commit is contained in:
vis2k 2021-06-15 17:03:57 +08:00
parent 79c6897249
commit 092ff4538a

View File

@ -575,10 +575,8 @@ public void AssignAndRemoveClientAuthority()
};
// create connections
LocalConnectionToClient owner = new LocalConnectionToClient();
LocalConnectionToServer clientConnection = new LocalConnectionToServer();
CreateLocalConnectionPair(out LocalConnectionToClient owner, out LocalConnectionToServer clientConnection);
owner.isReady = true;
owner.connectionToServer = clientConnection;
// setup NetworkServer/Client connections so messages are handled
NetworkClient.connection = clientConnection;