mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-10 17:44:22 +01:00
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>
This commit is contained in:
committed by
Christian Decker
parent
60b95d4764
commit
58d090c3c2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user