From 0558e6101bac855ae762c55d6c525b67f0bc5c0b Mon Sep 17 00:00:00 2001 From: Andrii-Yosafat Lozovyi Date: Thu, 22 Sep 2022 12:47:27 +0300 Subject: [PATCH] Fix test_container_autorestart bgp issue (#6355) * Fix test_container_autorestart bgp issue Signed-off-by: Andrii-Yosafat Lozovyi --- tests/autorestart/test_container_autorestart.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/autorestart/test_container_autorestart.py b/tests/autorestart/test_container_autorestart.py index 85589d1887..070ab04b53 100755 --- a/tests/autorestart/test_container_autorestart.py +++ b/tests/autorestart/test_container_autorestart.py @@ -321,6 +321,14 @@ def postcheck_critical_processes_status(duthost, feature_autorestart_states, up_ Returns: True if post check succeeds; Otherwise False. """ + # Check if all critical processes are running with timeout 100 sec, if not + # then this timeout will help to stabilize service state and to spot + # start-limit-hit if it was exceeded. + wait_until( + 100, POST_CHECK_INTERVAL_SECS, 0, + check_all_critical_processes_status, duthost + ) + for feature_name in feature_autorestart_states.keys(): if feature_name in duthost.DEFAULT_ASIC_SERVICES: for asic in duthost.asics: