mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
pytest: Chaning startup sentinel for bitcoind.
By looking for 'Done loading' in the log output we should actually be called after `SetRPCWarmupFinished` in bitcoind. Only then is it safe to make RPC calls. This resulted in the test suite being a bit flaky.
This commit is contained in:
@@ -139,7 +139,8 @@ class BitcoinD(TailableProc):
|
|||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
TailableProc.start(self)
|
TailableProc.start(self)
|
||||||
self.wait_for_log("dnsseed thread exit", timeout=10)
|
self.wait_for_log("Done loading", timeout=10)
|
||||||
|
|
||||||
logging.info("BitcoinD started")
|
logging.info("BitcoinD started")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user