forked from cerc-io/plugeth
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_example_test.go | ||
client_test.go | ||
client.go | ||
doc.go | ||
endpoints.go | ||
errors.go | ||
http_test.go | ||
http.go | ||
inproc.go | ||
ipc_unix.go | ||
ipc_windows.go | ||
ipc.go | ||
json_test.go | ||
json.go | ||
server_test.go | ||
server.go | ||
subscription_test.go | ||
subscription.go | ||
types_test.go | ||
types.go | ||
utils_test.go | ||
utils.go | ||
websocket_test.go | ||
websocket.go |