fix: fixed tests

This commit is contained in:
MrGadget 2024-07-11 15:10:44 -04:00
parent 4c22f878c7
commit 9a37b26f27
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ public override void SetUp()
// B // B
CreateNetworked(out gameObjectB, out identityB); CreateNetworked(out gameObjectB, out identityB);
connectionB = new NetworkConnectionToClient(0x0B); connectionB = new NetworkConnectionToClient(0x0B, "");
connectionB.isAuthenticated = true; connectionB.isAuthenticated = true;
connectionB.isReady = true; connectionB.isReady = true;
connectionB.identity = identityB; connectionB.identity = identityB;

View File

@ -298,7 +298,7 @@ public void TestClientExceptionCallback()
public void TestServerConnectedCallback(int id, string remoteClientAddress) public void TestServerConnectedCallback(int id, string remoteClientAddress)
{ {
int called = 0; int called = 0;
middleware.OnServerConnectedWithAddress = (i, remoteClientAddress) => middleware.OnServerConnectedWithAddress = (i, clientAddress) =>
{ {
called++; called++;
Assert.That(i, Is.EqualTo(id)); Assert.That(i, Is.EqualTo(id));