Merge pull request #3398 from nspcc-dev/enforce-testws-close

This commit is contained in:
Roman Khimov 2024-04-04 13:12:38 +03:00 committed by GitHub
commit 927dbb6dc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()
}