Browse Source

pytest: fix flaky test.

Saw this in Travis: technically we return from the dev_set_max_scids...
cmd after sending it to gossipd, but we should wait for it to log.
Adding an internal reply message for a dev command seems overkill.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
58d090c3c2
  1. 3
      tests/test_gossip.py

3
tests/test_gossip.py

@ -618,8 +618,9 @@ def test_gossip_query_channel_range(node_factory, bitcoind):
assert ret['final_complete']
assert len(ret['short_channel_ids']) == 0
# Make l2 split reply into two.
# Make l2 split reply into two (technically async)
l2.rpc.dev_set_max_scids_encode_size(max=9)
l2.daemon.wait_for_log('Set max_scids_encode_bytes to 9')
ret = l1.rpc.dev_query_channel_range(id=l2.info['id'],
first=0,
num=1000000)

Loading…
Cancel
Save