neoneo-go/pkg/services
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
..
helpers/rpcbroadcaster *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
metrics services: update logs flush after services shutdown 2024-02-27 15:10:51 +03:00
notary services: allow some slippage in TestNotary 2024-04-03 18:44:23 +03:00
oracle *: replace slice.Copy with bytes.Clone 2024-03-05 13:54:10 +03:00
rpcsrv rpcsrv: enforce WS connection close on test cleanup 2024-04-04 12:03:06 +03:00
stateroot services: update logs flush after services shutdown 2024-02-27 15:10:51 +03:00