mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
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 <rusty@rustcorp.com.au>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user