From 957d13c421ecd33a339d9e02c04d0e665fffd00f Mon Sep 17 00:00:00 2001 From: vis2k Date: Sun, 28 Nov 2021 14:15:31 +0100 Subject: [PATCH] Tests: update more often to support larger messages soon --- kcp2k/Assets/Tests/Editor/ClientServerTests.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kcp2k/Assets/Tests/Editor/ClientServerTests.cs b/kcp2k/Assets/Tests/Editor/ClientServerTests.cs index f96e5c1f..b25ef4f4 100644 --- a/kcp2k/Assets/Tests/Editor/ClientServerTests.cs +++ b/kcp2k/Assets/Tests/Editor/ClientServerTests.cs @@ -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();