mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
pytest: Use the same TIMEOUT in wait_for_route
This was getting flaky whenever we had multihop routing syncs and had `DEVELOPER=0`, which uses the slow gossip propagation.
This commit is contained in:
committed by
Rusty Russell
parent
39022028e9
commit
cc7985df92
@@ -961,7 +961,7 @@ class LightningNode(object):
|
|||||||
+ ['Received channel_update for channel {}/1'.format(c)
|
+ ['Received channel_update for channel {}/1'.format(c)
|
||||||
for c in scids])
|
for c in scids])
|
||||||
|
|
||||||
def wait_for_route(self, destination, timeout=30):
|
def wait_for_route(self, destination, timeout=TIMEOUT):
|
||||||
""" Wait for a route to the destination to become available.
|
""" Wait for a route to the destination to become available.
|
||||||
"""
|
"""
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
|
|||||||
Reference in New Issue
Block a user