We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b13e49e commit c7e7584Copy full SHA for c7e7584
com.unity.netcode.adapter.utp/Tests/Runtime/ConnectionTests.cs
@@ -294,7 +294,8 @@ public IEnumerator ServerDisconnectWithDataInQueue()
294
m_Server.StartServer();
295
m_Clients[0].StartClient();
296
297
- yield return WaitForNetworkEvent(NetworkEvent.Connect, m_ServerEvents);
+ // Wait for the client to connect before we disconnect the client
298
+ yield return WaitForNetworkEvent(NetworkEvent.Connect, m_ClientsEvents[0]);
299
300
var data = new ArraySegment<byte>(new byte[] { 42 });
301
m_Server.Send(m_ServerEvents[0].ClientID, data, NetworkDelivery.Unreliable);
0 commit comments