Skip to content

Commit

Permalink
Fix test_container_autorestart bgp issue (#6355)
Browse files Browse the repository at this point in the history
* Fix test_container_autorestart bgp issue

Signed-off-by: Andrii-Yosafat Lozovyi <andrii-yosafatx.lozovyi@intel.com>
  • Loading branch information
AndriiLozovyi committed Sep 22, 2022
1 parent ad5787b commit 0558e61
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/autorestart/test_container_autorestart.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0558e61

Please sign in to comment.