Skip to content

Commit 69b3715

Browse files
author
vis2k
committed
Tests: use Send/Receive window size 2x defaults so we can test larger windows/messages than defaults for skywind3000/kcp#291
1 parent 9342ded commit 69b3715

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

kcp2k/Assets/Tests/Editor/ClientServerTests.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,16 @@ public class ClientServerTests
3535
protected KcpServer server;
3636
protected List<Message> serverReceived;
3737
// server windows can be configured separately to test differently sized windows
38-
protected const int serverSendWindowSize = 128;
39-
protected const int serverReceiveWindowSize = 128;
38+
// use 2x defaults so we can test larger max message than defaults too.
39+
protected const int serverSendWindowSize = Kcp.WND_SND * 2;
40+
protected const int serverReceiveWindowSize = Kcp.WND_RCV * 2;
4041

4142
protected KcpClient client;
4243
protected List<Message> clientReceived;
4344
// client windows can be configured separately to test differently sized windows
44-
protected const int clientSendWindowSize = 128;
45-
protected const int clientReceiveWindowSize = 128;
45+
// use 2x defaults so we can test larger max message than defaults too.
46+
protected const int clientSendWindowSize = Kcp.WND_SND * 2;
47+
protected const int clientReceiveWindowSize = Kcp.WND_RCV * 2;
4648

4749
// setup ///////////////////////////////////////////////////////////////
4850
protected void ClientOnData(ArraySegment<byte> message, KcpChannel channel)

0 commit comments

Comments
 (0)