diff --git a/pkg/services/rpcsrv/subscription_test.go b/pkg/services/rpcsrv/subscription_test.go index b45c990b0..cae8ba5d1 100644 --- a/pkg/services/rpcsrv/subscription_test.go +++ b/pkg/services/rpcsrv/subscription_test.go @@ -100,8 +100,8 @@ func initCleanServerAndWSClient(t *testing.T, startNetworkServer ...bool) (*core } } close(readerStopCh) - <-readerToExitCh ws.Close() + <-readerToExitCh if len(startNetworkServer) != 0 && startNetworkServer[0] { rpcSrv.coreServer.Shutdown() }