Skip to content

Commit

Permalink
increase time waiting for bgp neighbors (#16175)
Browse files Browse the repository at this point in the history
Signed-off-by: Janetxxx <janet970527@gmail.com>
  • Loading branch information
Janetxxx authored Dec 20, 2024
1 parent f8369ce commit 7d96724
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/common/config_reload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
2 changes: 1 addition & 1 deletion tests/common/fixtures/duthost_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d96724

Please sign in to comment.