Merge b9be180368514a5be42fb74237ff12933e2232d3 into 155296c4d3a46f7e675b4822ac8d78aa2997a676

This commit is contained in:
AYAHASSAN287 2026-04-01 12:55:36 +02:00 committed by GitHub
commit b8df829fdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -277,8 +277,19 @@ class WakuNode:
except Exception as ex:
raise AttributeError(f"Unknown health response format {ex}")
if self.health_response.get("nodeHealth") != "READY":
raise AssertionError("Waiting for the node health status: READY")
health = self.health_response
if health.get("nodeHealth") != "READY":
raise AssertionError("Waiting for nodeHealth READY")
if health.get("connectionStatus") == "Disconnected":
raise AssertionError("Waiting for node connection")
protocols = health.get("protocolsHealth", [])
relay_ready = any(p.get("Relay") == "READY" for p in protocols)
if not relay_ready:
raise AssertionError("Waiting for Relay to be READY")
# for p in self.health_response.get("protocolsHealth"):
# if p.get("Rln Relay") != "READY":