From 8b6bc74629c724dab03b5073acd07565890f1174 Mon Sep 17 00:00:00 2001 From: MrGadget <9826063+MrGadget1024@users.noreply.github.com> Date: Sat, 20 Jul 2024 13:07:35 -0400 Subject: [PATCH] fix(MultiplexTransportTest): Update tests to use OnServerConnectedWithAddress --- .../Editor/Transports/MultiplexTransportTest.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/Mirror/Tests/Editor/Transports/MultiplexTransportTest.cs b/Assets/Mirror/Tests/Editor/Transports/MultiplexTransportTest.cs index c4609f4bf..1d315ce22 100644 --- a/Assets/Mirror/Tests/Editor/Transports/MultiplexTransportTest.cs +++ b/Assets/Mirror/Tests/Editor/Transports/MultiplexTransportTest.cs @@ -238,16 +238,16 @@ public void TestServerConnected() ArraySegment segment = new ArraySegment(data); // on connect, send a message back - void SendMessage(int connectionId) + void SendMessage(int connectionId, string remoteClientAddress) { transport.ServerSend(connectionId, segment, 5); } // set event and Start to give event to inner - transport.OnServerConnected = SendMessage; + transport.OnServerConnectedWithAddress = SendMessage; transport.ServerStart(); - transport1.OnServerConnected.Invoke(1); + transport1.OnServerConnectedWithAddress.Invoke(1, ""); transport1.Received().ServerSend(1, segment, 5); } @@ -260,14 +260,14 @@ public void TestServerSend() transport.ServerStart(); transport.ClientConnect("some.server.com"); - transport.OnServerConnected = _ => {}; + transport.OnServerConnectedWithAddress = (_,_) => {}; transport.OnServerDisconnected = _ => {}; // connect two connectionIds. // one of them very large to prevent // https://github.com/vis2k/Mirror/issues/3280 - transport1.OnServerConnected(10); - transport2.OnServerConnected(int.MaxValue); + transport1.OnServerConnectedWithAddress(10, ""); + transport2.OnServerConnectedWithAddress(int.MaxValue, ""); byte[] data = { 1, 2, 3 }; ArraySegment segment = new ArraySegment(data);