From 537ebb2fb3301e82a297a5c8c4c5043d8d0938e4 Mon Sep 17 00:00:00 2001 From: Michael Mallan Date: Fri, 6 Sep 2024 16:50:45 +0100 Subject: [PATCH] func test: check electrs has started --- tests/test_framework/electrs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_framework/electrs.py b/tests/test_framework/electrs.py index ee8c6a51..2c32b88f 100644 --- a/tests/test_framework/electrs.py +++ b/tests/test_framework/electrs.py @@ -2,7 +2,7 @@ import logging import os from ephemeral_port_reserve import reserve -from test_framework.utils import BitcoinBackend, TailableProc, ELECTRS_PATH +from test_framework.utils import BitcoinBackend, TailableProc, ELECTRS_PATH, TIMEOUT class Electrs(BitcoinBackend): @@ -54,6 +54,7 @@ class Electrs(BitcoinBackend): def start(self): TailableProc.start(self) + self.wait_for_log("auto-compactions enabled", timeout=TIMEOUT) logging.info("Electrs started") def startup(self):