Tests: ConnectHostClientBlocking() now connects local server too. otherwise NetworkServer.localConnection isn't added to NetworkServer.Connections.

This commit is contained in:
vis2k 2021-08-01 13:51:51 +08:00
parent 2c85cfbd06
commit 2d2ea64d8a

View File

@ -192,7 +192,9 @@ protected void ConnectClientBlockingAuthenticatedAndReady(out NetworkConnectionT
protected void ConnectHostClientBlocking()
{
NetworkClient.ConnectHost();
NetworkClient.ConnectLocalServer();
UpdateTransport();
Assert.That(NetworkServer.connections.Count, Is.EqualTo(1));
}
// fully connect client to local server & authenticate & set read