100 concurrent connections in a unit tests kills the machine.

master
Robinson 2023-11-22 20:39:06 +01:00
parent 2cfc2e41e6
commit b496f83e64
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 2 additions and 1 deletions

View File

@ -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)