Skip to content

Commit

Permalink
func test: check electrs has started
Browse files Browse the repository at this point in the history
  • Loading branch information
jp1ac4 committed Sep 6, 2024
1 parent f7b2831 commit a8df6f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_framework/electrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
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):
Expand Down Expand Up @@ -54,6 +54,7 @@ def __init__(

def start(self):
TailableProc.start(self)
self.wait_for_log("serving Electrum RPC", timeout=TIMEOUT)
logging.info("Electrs started")

def startup(self):
Expand Down

0 comments on commit a8df6f7

Please sign in to comment.