• Felix Lange's avatar
    rpc: fix subscription corner case and speed up tests (#17874) · 4e474c74
    Felix Lange authored
    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.
    4e474c74
Name
Last commit
Last update
.github Loading commit data...
accounts Loading commit data...
build Loading commit data...
cmd Loading commit data...
common Loading commit data...
consensus Loading commit data...
console Loading commit data...
containers/docker Loading commit data...
contracts Loading commit data...
core Loading commit data...
crypto Loading commit data...
dashboard Loading commit data...
eth Loading commit data...
ethclient Loading commit data...
ethdb Loading commit data...
ethstats Loading commit data...
event Loading commit data...
internal Loading commit data...
les Loading commit data...
light Loading commit data...
log Loading commit data...
metrics Loading commit data...
miner Loading commit data...
mobile Loading commit data...
node Loading commit data...
p2p Loading commit data...
params Loading commit data...
rlp Loading commit data...
rpc Loading commit data...
signer Loading commit data...
swarm Loading commit data...
tests Loading commit data...
trie Loading commit data...
vendor Loading commit data...
whisper Loading commit data...
.dockerignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
Dockerfile Loading commit data...
Dockerfile.alltools Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
appveyor.yml Loading commit data...
circle.yml Loading commit data...
interfaces.go Loading commit data...