rpcsrv: fix failing TestWSClientsLimit

64 connections is too much for slow GA runners, we have to keep all of
them alive to avoid failures in the test, but it's impossible since
runners are too slow to iterate through all of them in time.

Close #3442.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
Anna Shaleva 2024-08-09 15:14:52 +03:00
parent f0266a9973
commit 9ba6db491e

View file

@ -590,11 +590,9 @@ func doSomeWSRequest(t *testing.T, ws *websocket.Conn) {
}
func TestWSClientsLimit(t *testing.T) {
for tname, limit := range map[string]int{"default": 0, "8": 8, "disabled": -1} {
for tname, limit := range map[string]int{"8": 8, "disabled": -1} {
effectiveClients := limit
if limit == 0 {
effectiveClients = defaultMaxWebSocketClients
} else if limit < 0 {
if limit < 0 {
effectiveClients = 0
}
t.Run(tname, func(t *testing.T) {