From c7e6f197b00fd9a3d1ba4f6b110f769078668a39 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Wed, 8 Feb 2017 15:12:08 +0100 Subject: [PATCH] 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. --- tests/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/utils.py b/tests/utils.py index 4c3a8cf22..20869a2c6 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -139,7 +139,8 @@ class BitcoinD(TailableProc): def 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")