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