mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-11 01:54:25 +01:00
pytest: Use utils.TIMEOUT when settling in test_routing_gossip
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
2e8b3066e4
commit
1a45efd0a9
@@ -2663,7 +2663,7 @@ class LightningDTests(BaseLightningDTests):
|
||||
expected_connections = 2 * (len(nodes) - 1)
|
||||
start_time = time.time()
|
||||
# Wait at most 10 seconds, broadcast interval is 1 second
|
||||
while time.time() - start_time < 10:
|
||||
while time.time() - start_time < utils.TIMEOUT:
|
||||
channels = n.rpc.listchannels()['channels']
|
||||
if len(channels) == expected_connections:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user