neoneo-go/pkg/rpc/server
Roman Khimov d5df1212c2 rpc/server: start and shutdown Server in tests
It will be important for proper subscription testing and it doesn't hurt even
though technically we've got two http servers listening after this change (one
is a regular Server's http.Server and one is httptest's Server). Reusing
rpc.Server would be nice, but it requires some changes to Start sequence to
start Listener with net.Listen and then communicate back its resulting
Addr. It's not very convenient especially given that no other code needs it,
so doing these changes just for a bit cleaner testing seems like and
overkill.

Update config appropriately. Update Start comment along the way.
2020-05-12 17:42:34 +03:00
..
testdata rpc: update test chain 2020-04-06 09:31:09 +03:00
prometheus.go rpc: reuse handlers map for prometheus metrics 2020-03-25 15:25:12 +03:00
server.go rpc/server: start and shutdown Server in tests 2020-05-12 17:42:34 +03:00
server_helper_test.go rpc/server: start and shutdown Server in tests 2020-05-12 17:42:34 +03:00
server_test.go rpc/server: start and shutdown Server in tests 2020-05-12 17:42:34 +03:00