Browse Source

pytest: Use utils.TIMEOUT when settling in test_routing_gossip

Signed-off-by: Christian Decker <decker.christian@gmail.com>
ppa-0.6.1
Christian Decker 7 years ago
committed by Rusty Russell
parent
commit
1a45efd0a9
  1. 2
      tests/test_lightningd.py

2
tests/test_lightningd.py

@ -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

Loading…
Cancel
Save