From 9ba6db491ef57fe01867b631733182773b852ce2 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 9 Aug 2024 15:14:52 +0300 Subject: [PATCH] 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 --- pkg/services/rpcsrv/subscription_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/services/rpcsrv/subscription_test.go b/pkg/services/rpcsrv/subscription_test.go index cae8ba5d1..0017740c3 100644 --- a/pkg/services/rpcsrv/subscription_test.go +++ b/pkg/services/rpcsrv/subscription_test.go @@ -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) {