neo-go/pkg/services/rpcsrv
Anna Shaleva e5c919f701 rpcsrv: enforce WS connection close on test cleanup
Do not wait until wsReader routine gracefully finishes its work before
WS connection close. Instead, firstly close the connection, and after
that wait for proper wsReader exit.

It's a harsh way, but I don't have any other options to try, because
wsReader routine hangs on `ws.ReadMessage()` operation for more than
ReadDeadline (more than 5 seconds) during test cleanup which results in
the test timeout.

Close #3378.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
2024-04-04 12:03:06 +03:00
..
params rpcsrv: support Map parameter in invokefunction RPC handler 2024-02-28 15:54:33 +03:00
testdata rpcclient: fix WS-client unsubscription process 2022-11-16 23:44:30 +03:00
client_test.go rpcsrv: allow one-block slippage in TestWSClient_SubscriptionsCompat 2024-04-04 11:02:15 +03:00
error.go rpcsrv: remove default request HTTP codes from switch statement 2023-08-16 14:00:24 +01:00
local_test.go config: drop deprecated address/port configurations 2023-10-10 13:26:07 +03:00
prometheus.go rpcsrv: remove deprecated RPC counters 2023-03-18 10:52:24 +03:00
server.go rpcsrv: add SessionEnabled, MaxIteratorResultItems to getversion 2024-04-03 22:42:14 +03:00
server_helper_test.go rpcsrv: add close of http server in tests 2024-03-06 01:17:59 +03:00
server_test.go Merge pull request #3392 from nspcc-dev/adjust-deadlines 2024-04-03 14:50:14 +03:00
subscription.go neorpc: add WS notification filter IsValid functionality 2023-12-28 11:08:46 +03:00
subscription_test.go rpcsrv: enforce WS connection close on test cleanup 2024-04-04 12:03:06 +03:00
tokens.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
util.go rpc/server: move to services/rpcsrv 2022-07-21 22:14:12 +03:00