fix: indexing for ensure_nodes_ready

This commit is contained in:
Roman 2025-02-12 22:09:55 +08:00
parent eb51c6b02c
commit ebd56ce282
No known key found for this signature in database
GPG Key ID: B8FE070B54E11B75

View File

@ -46,7 +46,7 @@ class StepsCommon:
start_nodes(self.main_nodes)
try:
ensure_nodes_ready(self.main_nodes[2:])
ensure_nodes_ready(self.main_nodes[1:])
except Exception as ex:
logger.error(f"REST service did not become ready in time: {ex}")
raise
@ -64,7 +64,7 @@ class StepsCommon:
start_nodes(self.main_nodes)
try:
ensure_nodes_ready(self.main_nodes[2:])
ensure_nodes_ready(self.main_nodes[1:])
except Exception as ex:
logger.error(f"REST service did not become ready in time: {ex}")
raise