diff --git a/src/node/waku_node.py b/src/node/waku_node.py index d41378d0..384b19b3 100644 --- a/src/node/waku_node.py +++ b/src/node/waku_node.py @@ -190,12 +190,15 @@ class WakuNode: @retry(stop=stop_after_delay(timeout_duration), wait=wait_fixed(0.1), reraise=True) def check_healthy(node=self): self.health_response = node.health() - h = json.loads(self.health_response) + h = self.health_response + logger.debug(f"Health endpoint response object {h}") if h["nodeHealth"] and h["nodeHealth"] != "Ready": raise AssertionError("Waiting for the node health status: Ready") - if h["protocolsHealth"] and h["protocolsHealth"]["Rln Relay"] != "Ready": - raise AssertionError("Waiting for the Rln Relay status: Ready") + for p in h["protocolsHealth"]: + if p["Rln Relay"] and p["Rln Relay"] != "Ready": + raise AssertionError("Waiting for the Rln relay status: Ready") + logger.info("Node protocols are initialized !!") @retry(stop=stop_after_delay(5), wait=wait_fixed(0.1), reraise=True)