Skip to content

Commit

Permalink
Tests: update more often to support larger messages soon
Browse files Browse the repository at this point in the history
  • Loading branch information
vis2k committed Nov 28, 2021
1 parent e191e96 commit 957d13c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kcp2k/Assets/Tests/Editor/ClientServerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ int ServerFirstConnectionId()
void UpdateSeveralTimes()
{
// update serveral times to avoid flaky tests.
// => need to update at 120 times for maxed sized message tests
// where it requires 120+ fragments
for (int i = 0; i < 200; ++i)
// => need to update at 120 times for default maxed sized messages
// where it requires 120+ fragments.
// => need to update even more often for 2x default max sized
for (int i = 0; i < 500; ++i)
{
client.Tick();
server.Tick();
Expand Down

0 comments on commit 957d13c

Please sign in to comment.