From 789eae5cc1ee1e2338941040cb47e04ca8db901a Mon Sep 17 00:00:00 2001 From: peilun-conflux <48905552+peilun-conflux@users.noreply.github.com> Date: Mon, 28 Oct 2024 10:53:28 +0800 Subject: [PATCH] Start nodes sequentially to fix some random failure. (#243) Currently we use the config `network_libp2p_nodes` to connect nodes in the tests. This will not be retried, so if an early node starts too slowly, other nodes may fail to connect to it. --- tests/test_framework/test_framework.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_framework/test_framework.py b/tests/test_framework/test_framework.py index 8448a05..0124eaa 100644 --- a/tests/test_framework/test_framework.py +++ b/tests/test_framework/test_framework.py @@ -209,13 +209,11 @@ class TestFramework: if i > 0: time.sleep(1) node.start() + node.wait_for_rpc_connection() self.log.info("Wait the zgs_node launch for %d seconds", self.launch_wait_seconds) time.sleep(self.launch_wait_seconds) - for node in self.nodes: - node.wait_for_rpc_connection() - def add_arguments(self, parser: argparse.ArgumentParser): parser.add_argument( "--conflux-binary",