From 653797d577dcc7039ced19a72213a559995e4efc Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 8 Oct 2021 15:28:47 +0200 Subject: [PATCH] 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. --- contrib/pyln-testing/pyln/testing/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pyln-testing/pyln/testing/utils.py b/contrib/pyln-testing/pyln/testing/utils.py index 14e93a9e70c8..f986e4ffcdae 100644 --- a/contrib/pyln-testing/pyln/testing/utils.py +++ b/contrib/pyln-testing/pyln/testing/utils.py @@ -961,7 +961,7 @@ def wait_for_channel_updates(self, scids): + ['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()