From 61d8eb5fa82f450274319367d10ec35f5c14666d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sun, 26 Jun 2022 14:14:01 +0930 Subject: [PATCH] pyln-testing: increase default daemon.wait() timeout. Valgrind in CI is slow: ``` def test_bitcoin_failure(node_factory, bitcoind): ... # Ignore BROKEN log message about blocksonly mode. l2 = node_factory.get_node(start=False, expect_fail=True, allow_broken_log=True) l2.daemon.start(wait_for_initialized=False) # Will exit with failure code. > assert l2.daemon.wait() == 1 tests/test_misc.py:114: ``` Signed-off-by: Rusty Russell --- 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 590097b0f..2671f4c38 100644 --- a/contrib/pyln-testing/pyln/testing/utils.py +++ b/contrib/pyln-testing/pyln/testing/utils.py @@ -611,7 +611,7 @@ class LightningD(TailableProc): self.wait_for_log("Server started with public key") logging.info("LightningD started") - def wait(self, timeout=10): + def wait(self, timeout=TIMEOUT): """Wait for the daemon to stop for up to timeout seconds Returns the returncode of the process, None if the process did