neoneo-go/pkg/rpc/server
Roman Khimov 612500ed96 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-25 00:27:39 +03:00
..
testdata core: add witness check to nep5 transfer method 2020-05-20 23:34:27 +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-25 00:27:39 +03:00
server_helper_test.go rpc/server: start and shutdown Server in tests 2020-05-25 00:27:39 +03:00
server_test.go rpc/server: start and shutdown Server in tests 2020-05-25 00:27:39 +03:00