fix: remove debug from health response parsing

This commit is contained in:
Roman 2024-05-07 20:36:01 +08:00
parent 59a079d3a3
commit 3dd1a857bc
No known key found for this signature in database
GPG Key ID: B8FE070B54E11B75

View File

@ -190,12 +190,10 @@ 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 = self.health_response
logger.debug(f"Health endpoint response object {h}")
if h["nodeHealth"] and h["nodeHealth"] != "Ready":
if self.health_response["nodeHealth"] and self.health_response["nodeHealth"] != "Ready":
raise AssertionError("Waiting for the node health status: Ready")
for p in h["protocolsHealth"]:
for p in self.health_response["protocolsHealth"]:
if p["Rln Relay"] and p["Rln Relay"] != "Ready":
raise AssertionError("Waiting for the Rln relay status: Ready")