test: impatient cfgsync

This commit is contained in:
Roman 2025-01-08 15:20:23 +08:00
parent 24e5fbc029
commit c3ceb579fa
No known key found for this signature in database
GPG Key ID: B8FE070B54E11B75

View File

@ -41,7 +41,7 @@ class NomosNode:
logger.debug(f"NomosNode instance initialized with log path {self._log_path}")
# @retry(stop=stop_after_delay(60), wait=wait_fixed(0.1), reraise=True)
def start(self, wait_for_node_sec=20, **kwargs):
def start(self, wait_for_node_sec=120, **kwargs):
logger.debug("Starting Node...")
self._docker_manager.create_network()
self._ext_ip = self._docker_manager.generate_random_ext_ip()
@ -81,11 +81,11 @@ class NomosNode:
logger.debug(f"Container returned {self._container}")
logger.debug(f"Started container from image {self._image_name}. " f"REST: {getattr(self, '_tcp_port', 'N/A')}")
try:
self.ensure_ready(timeout_duration=wait_for_node_sec)
except Exception as ex:
logger.error(f"REST service did not become ready in time: {ex}")
raise
# try:
self.ensure_ready(timeout_duration=wait_for_node_sec)
# except Exception as ex:
# logger.error(f"REST service did not become ready in time: {ex}")
# raise
def ensure_ready(self, timeout_duration=10):
@retry(stop=stop_after_delay(timeout_duration), wait=wait_fixed(0.1), reraise=True)