Skip to content

Commit

Permalink
Tests: use Send/Receive window size 2x defaults so we can test larger…
Browse files Browse the repository at this point in the history
… windows/messages than defaults for skywind3000/kcp#291
  • Loading branch information
vis2k committed Nov 28, 2021
1 parent 9342ded commit 69b3715
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions kcp2k/Assets/Tests/Editor/ClientServerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,16 @@ public class ClientServerTests
protected KcpServer server;
protected List<Message> 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<Message> 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<byte> message, KcpChannel channel)
Expand Down

0 comments on commit 69b3715

Please sign in to comment.