go-pulse/rpc
Felix Lange 4e474c74dc
rpc: fix subscription corner case and speed up tests (#17874)
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.
2018-10-09 16:34:24 +02:00
..
client_example_test.go rpc: fix a subscription name (#17345) 2018-08-09 08:56:35 +03:00
client_test.go p2p: add network simulation framework (#14982) 2017-09-25 10:08:07 +02:00
client.go rpc: reset client write deadline after write (#17549) 2018-09-03 16:56:30 +02:00
doc.go rpc: fix missing parentheses in doc (#17224) 2018-07-22 22:09:45 +03:00
endpoints.go rpc: make HTTP RPC timeouts configurable, raise defaults (#17240) 2018-07-31 12:16:14 +03:00
errors.go rpc: add new client, use it everywhere 2016-07-22 23:21:27 +02:00
http_test.go rpc: enforce the 128KB request limits on websockets too 2018-03-13 13:55:26 +02:00
http.go cmd/clef, signer: security fixes (#17554) 2018-09-25 15:54:58 +02:00
inproc.go rpc: golint error with context as last parameter (#16657) 2018-05-03 11:41:22 +03:00
ipc_unix.go all: import "context" instead of "golang.org/x/net/context" 2017-03-22 20:49:15 +01:00
ipc_windows.go all: import "context" instead of "golang.org/x/net/context" 2017-03-22 20:49:15 +01:00
ipc.go rpc: clean up IPC handler (#16524) 2018-04-18 12:27:20 +02:00
json_test.go all: fix go vet warnings 2016-04-15 11:17:27 +02:00
json.go rpc: support returning nil pointer big.Ints (null) 2018-06-11 13:56:22 +03:00
server_test.go all: import "context" instead of "golang.org/x/net/context" 2017-03-22 20:49:15 +01:00
server.go rpc: clean up check for missing methods/subscriptions on handler (#17145) 2018-07-24 02:00:55 +02:00
subscription_test.go rpc: fix subscription corner case and speed up tests (#17874) 2018-10-09 16:34:24 +02:00
subscription.go rpc: fix subscription corner case and speed up tests (#17874) 2018-10-09 16:34:24 +02:00
types_test.go all: update license information (#16089) 2018-02-14 13:49:11 +01:00
types.go all: switch out defunct set library to different one (#16873) 2018-07-16 10:54:19 +03:00
utils_test.go rpc: format filter ID according to spec for quantities 2016-09-01 11:50:13 +02:00
utils.go rpc: support returning nil pointer big.Ints (null) 2018-06-11 13:56:22 +03:00
websocket_test.go rpc: enable basic auth for websocket client (#17699) 2018-09-19 18:09:03 +02:00
websocket.go rpc: enable basic auth for websocket client (#17699) 2018-09-19 18:09:03 +02:00