mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 13:47:19 +00:00
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:
parent
f0266a9973
commit
9ba6db491e
1 changed files with 2 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue