diff options
author | Donald Sharp <sharpd@nvidia.com> | 2021-09-16 21:12:13 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2021-09-16 21:12:13 +0200 |
commit | 4367df157529b3c0f556333bbe41ccd125bd7c6c (patch) | |
tree | fa18960a68e89812dc18786b5f4b3e268c9bf3de /tests | |
parent | Merge pull request #9627 from donaldsharp/connect_interface_based_issue (diff) | |
download | frr-4367df157529b3c0f556333bbe41ccd125bd7c6c.tar.xz frr-4367df157529b3c0f556333bbe41ccd125bd7c6c.zip |
tests: Do not do a initial_timeout of 2 seconds for verify_bgp_rib
A bunch of tests have this pattern:
a) Install a new prefix into bgp
b) Run this loop:
foreach (router in topology) {
verify_bgp_rib(router)
}
This is to ensure that the prefix is actually disseminated.
The problem with this, of course, is that a wait of 2 seconds
for every item in that loop makes no sense. As that the initial
router verification of it's bgp rib will wait 2 seconds and
all the remaining bgp routers in the topology will have gotten
the data. So we end up waiting a bunch of extra time.
Remove the initial_wait time for verify_bgp_rib. Also
increase the failure wait time to 30 seconds. This is
to give a bigger window for bgp to send it's data for
our test systems that could be under heavy load. In the
normal case tests will never hit this.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/topotests/lib/bgp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/topotests/lib/bgp.py b/tests/topotests/lib/bgp.py index d05332388..556240bfb 100644 --- a/tests/topotests/lib/bgp.py +++ b/tests/topotests/lib/bgp.py @@ -2672,7 +2672,7 @@ def verify_best_path_as_per_admin_distance( return True -@retry(retry_timeout=10, initial_wait=2) +@retry(retry_timeout=30) def verify_bgp_rib( tgen, addr_type, |