diff --git a/kcp2k/Assets/Tests/Editor/ClientServerTests.cs b/kcp2k/Assets/Tests/Editor/ClientServerTests.cs index 23df0a86..cf67039b 100644 --- a/kcp2k/Assets/Tests/Editor/ClientServerTests.cs +++ b/kcp2k/Assets/Tests/Editor/ClientServerTests.cs @@ -35,14 +35,16 @@ public class ClientServerTests protected KcpServer server; protected List serverReceived; // server windows can be configured separately to test differently sized windows - protected const int serverSendWindowSize = 128; - protected const int serverReceiveWindowSize = 128; + // use 2x defaults so we can test larger max message than defaults too. + protected const int serverSendWindowSize = Kcp.WND_SND * 2; + protected const int serverReceiveWindowSize = Kcp.WND_RCV * 2; protected KcpClient client; protected List clientReceived; // client windows can be configured separately to test differently sized windows - protected const int clientSendWindowSize = 128; - protected const int clientReceiveWindowSize = 128; + // use 2x defaults so we can test larger max message than defaults too. + protected const int clientSendWindowSize = Kcp.WND_SND * 2; + protected const int clientReceiveWindowSize = Kcp.WND_RCV * 2; // setup /////////////////////////////////////////////////////////////// protected void ClientOnData(ArraySegment message, KcpChannel channel)