mirror of https://github.com/status-im/op-geth.git
4e474c74dc
Notifier tracks whether subscription are 'active'. A subscription becomes active when the subscription ID has been sent to the client. If the client sends notifications in the request handler before the subscription becomes active they are dropped. The tests tried to work around this problem by always waiting 5s before sending the first notification. Fix it by buffering notifications until the subscription becomes active. This speeds up all subscription tests. Also fix TestSubscriptionMultipleNamespaces to wait for three messages per subscription instead of six. The test now finishes just after all notifications have been received and doesn't hit the 30s timeout anymore. |
||
---|---|---|
.. | ||
client.go | ||
client_example_test.go | ||
client_test.go | ||
doc.go | ||
endpoints.go | ||
errors.go | ||
http.go | ||
http_test.go | ||
inproc.go | ||
ipc.go | ||
ipc_unix.go | ||
ipc_windows.go | ||
json.go | ||
json_test.go | ||
server.go | ||
server_test.go | ||
subscription.go | ||
subscription_test.go | ||
types.go | ||
types_test.go | ||
utils.go | ||
utils_test.go | ||
websocket.go | ||
websocket_test.go |