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:
Christian Decker 2021-10-08 15:28:47 +02:00 committed by Rusty Russell
parent 39022028e9
commit cc7985df92

View file

@ -961,7 +961,7 @@ class LightningNode(object):
+ ['Received channel_update for channel {}/1'.format(c)
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.
"""
start_time = time.time()