fix NetworkClientTests.Send() test

This commit is contained in:
vis2k 2021-06-15 12:07:12 +08:00
parent 4a03c3034e
commit 0d7edde710

View File

@ -94,6 +94,10 @@ public void Send()
AddPlayerMessage message = new AddPlayerMessage(); AddPlayerMessage message = new AddPlayerMessage();
NetworkClient.Send(message); NetworkClient.Send(message);
// update client & server so batches are flushed
NetworkClient.NetworkLateUpdate();
NetworkServer.NetworkLateUpdate();
// update transport so data event is processed // update transport so data event is processed
UpdateTransport(); UpdateTransport();