From 7d967244760b2159694ec70fa411e3c84ebc816e Mon Sep 17 00:00:00 2001 From: Janet Cui Date: Sat, 21 Dec 2024 03:48:26 +1100 Subject: [PATCH] increase time waiting for bgp neighbors (#16175) Signed-off-by: Janetxxx --- tests/common/config_reload.py | 2 +- tests/common/fixtures/duthost_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/common/config_reload.py b/tests/common/config_reload.py index 7871cb921dd..5916a63b2bf 100644 --- a/tests/common/config_reload.py +++ b/tests/common/config_reload.py @@ -217,6 +217,6 @@ def _config_reload_cmd_wrapper(cmd, executable): if wait_for_bgp: bgp_neighbors = sonic_host.get_bgp_neighbors_per_asic(state="all") pytest_assert( - wait_until(wait + 300, 10, 0, sonic_host.check_bgp_session_state_all_asics, bgp_neighbors), + wait_until(wait + 120, 10, 0, sonic_host.check_bgp_session_state_all_asics, bgp_neighbors), "Not all bgp sessions are established after config reload", ) diff --git a/tests/common/fixtures/duthost_utils.py b/tests/common/fixtures/duthost_utils.py index 66514600763..e906989b93a 100644 --- a/tests/common/fixtures/duthost_utils.py +++ b/tests/common/fixtures/duthost_utils.py @@ -765,7 +765,7 @@ def convert_and_restore_config_db_to_ipv6_only(duthosts): if config_db_modified[duthost.hostname]: logger.info(f"config changed. Doing config reload for {duthost.hostname}") try: - config_reload(duthost, wait=120, wait_for_bgp=True) + config_reload(duthost, wait=300, wait_for_bgp=True) except AnsibleConnectionFailure as e: # IPV4 mgmt interface been deleted by config reload # In latest SONiC, config reload command will exit after mgmt interface restart