mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-22 19:19:09 +00:00
Merge pull request #3552 from nspcc-dev/fix-wsclient-limit
rpcsrv: fix failing TestWSClientsLimit
This commit is contained in:
commit
79e78980c4
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