From b496f83e64ab55611ed28042d6443ed66a5f6dd6 Mon Sep 17 00:00:00 2001 From: Robinson Date: Wed, 22 Nov 2023 20:39:06 +0100 Subject: [PATCH] 100 concurrent connections in a unit tests kills the machine. --- test/dorkboxTest/network/MultiClientTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/dorkboxTest/network/MultiClientTest.kt b/test/dorkboxTest/network/MultiClientTest.kt index 506d7c1a..4da9244c 100644 --- a/test/dorkboxTest/network/MultiClientTest.kt +++ b/test/dorkboxTest/network/MultiClientTest.kt @@ -33,7 +33,8 @@ import java.util.concurrent.* @Suppress("UNUSED_ANONYMOUS_PARAMETER") class MultiClientTest : BaseTest() { - private val totalCount = 100 + // this can be upped to 100 for stress testing, but for general unit tests this should be smaller (as this is sensitive on the load of the machine) + private val totalCount = 10 private val clientConnectCount = atomic(0) private val serverConnectCount = atomic(0)