mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkServerTest: use ClientConnect so that invoked connectionId and MemoryTransport's internal connectionId match.
This commit is contained in:
parent
2d24dfefbe
commit
bac1f94033
@ -1030,8 +1030,9 @@ public void ShutdownCleanupTest()
|
||||
NetworkServer.SetLocalConnection(new LocalConnectionToClient());
|
||||
Assert.That(NetworkServer.localClientActive, Is.True);
|
||||
|
||||
// connect
|
||||
transport.OnServerConnected.Invoke(42);
|
||||
// connect a client
|
||||
transport.ClientConnect("localhost");
|
||||
UpdateTransport();
|
||||
Assert.That(NetworkServer.connections.Count, Is.EqualTo(1));
|
||||
|
||||
// shutdown
|
||||
|
Loading…
Reference in New Issue
Block a user