From 9650dfb4aa2bbfe5443f5761521fa4334e9f6f25 Mon Sep 17 00:00:00 2001 From: anikeev-yadro Date: Thu, 10 Nov 2022 17:35:28 +0300 Subject: [PATCH] Add comments to timeout between commands Signed-off-by: anikeev-yadro --- robot/resources/lib/python_keywords/node_management.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/robot/resources/lib/python_keywords/node_management.py b/robot/resources/lib/python_keywords/node_management.py index fdfa85d..8c032a1 100644 --- a/robot/resources/lib/python_keywords/node_management.py +++ b/robot/resources/lib/python_keywords/node_management.py @@ -188,6 +188,9 @@ def include_node_to_network_map( ) -> None: node_set_status(hosting, node_to_include, status="online") + # Per suggestion of @fyrchik we need to wait for 2 blocks after we set status and after tick epoch. + # First sleep can be ommited afer https://github.com/nspcc-dev/neofs-node/issues/1790 complete. + time.sleep(parse_time(MORPH_BLOCK_TIME) * 2) tick_epoch(shell=shell) time.sleep(parse_time(MORPH_BLOCK_TIME) * 2)