diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-11-19 07:31:57 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-11-21 19:42:18 -0500 |
| commit | c6653ab2ebc4b8043ec1dccf188a5428d463c56c (patch) | |
| tree | 90ee103cecc04dca1838016832296554c29eb5cb /tests/topotests/bgp_features/test_bgp_features.py | |
| parent | 6d48dfcb71d45b0bdef99b0b094a2f236544cfb9 (diff) | |
tests: Expand minimum run_and_expect to 5 seconds
Ensure that the minimum time spent run and expecting is
5 seconds. Heavy load is not a reason to fail a test.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests/topotests/bgp_features/test_bgp_features.py')
| -rw-r--r-- | tests/topotests/bgp_features/test_bgp_features.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/topotests/bgp_features/test_bgp_features.py b/tests/topotests/bgp_features/test_bgp_features.py index ab44ba3c83..0f501f7089 100644 --- a/tests/topotests/bgp_features/test_bgp_features.py +++ b/tests/topotests/bgp_features/test_bgp_features.py @@ -785,7 +785,7 @@ def test_bgp_delayopen_without(): test_func = functools.partial( topotest.router_json_cmp, router, "show ip bgp summary json", expected ) - _, res = topotest.run_and_expect(test_func, None, count=3, wait=1) + _, res = topotest.run_and_expect(test_func, None, count=5, wait=1) assertmsg = "BGP session on r{} did not shut down peer".format(router_num) assert res is None, assertmsg @@ -862,7 +862,7 @@ def test_bgp_delayopen_singular(): test_func = functools.partial( topotest.router_json_cmp, router, "show ip bgp summary json", expected ) - _, res = topotest.run_and_expect(test_func, None, count=3, wait=1) + _, res = topotest.run_and_expect(test_func, None, count=5, wait=1) assertmsg = "BGP session on r{} did not shut down peer".format(router_num) assert res is None, assertmsg @@ -880,7 +880,7 @@ def test_bgp_delayopen_singular(): test_func = functools.partial( topotest.router_json_cmp, router, "show bgp neighbors json", expected ) - _, res = topotest.run_and_expect(test_func, None, count=3, wait=1) + _, res = topotest.run_and_expect(test_func, None, count=5, wait=1) assertmsg = "BGP session on r1 failed to set DelayOpenTime for r4" assert res is None, assertmsg @@ -974,7 +974,7 @@ def test_bgp_delayopen_dual(): test_func = functools.partial( topotest.router_json_cmp, router, "show ip bgp summary json", expected ) - _, res = topotest.run_and_expect(test_func, None, count=3, wait=1) + _, res = topotest.run_and_expect(test_func, None, count=5, wait=1) assertmsg = "BGP session on r{} did not shut down peer".format(router_num) assert res is None, assertmsg @@ -1003,7 +1003,7 @@ def test_bgp_delayopen_dual(): test_func = functools.partial( topotest.router_json_cmp, router, "show bgp neighbors json", expected ) - _, res = topotest.run_and_expect(test_func, None, count=3, wait=1) + _, res = topotest.run_and_expect(test_func, None, count=5, wait=1) assertmsg = "BGP session on r{} failed to set DelayOpenTime".format(router_num) assert res is None, assertmsg @@ -1032,7 +1032,7 @@ def test_bgp_delayopen_dual(): test_func = functools.partial( topotest.router_json_cmp, router, "show ip bgp summary json", expected ) - _, res = topotest.run_and_expect(test_func, None, count=3, wait=1) + _, res = topotest.run_and_expect(test_func, None, count=5, wait=1) assertmsg = "BGP session on r{} did not enter Connect state with peer".format( router_num ) |
