mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
pytest: fix flaky race in test_gossip_query_channel_range.
We weren't waiting for gossipd to actually process the dev_set_max_scids_encode_size message, so under Travis it sometimes split the reply before processing that. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
57794b9285
commit
ed83bbe623
@@ -2745,6 +2745,9 @@ class LightningDTests(BaseLightningDTests):
|
||||
|
||||
# Restore infinite encode size.
|
||||
l2.rpc.dev_set_max_scids_encode_size(max=(2**32 - 1))
|
||||
l2.daemon.wait_for_log('Set max_scids_encode_bytes to {}'
|
||||
.format(2**32 - 1))
|
||||
|
||||
ret = l1.rpc.dev_query_channel_range(id=l2.info['id'],
|
||||
first=0,
|
||||
num=65535)
|
||||
|
||||
Reference in New Issue
Block a user