diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-06-18 08:42:11 -0300 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-06-18 08:42:11 -0300 |
| commit | 65e3e8484b0429e1fc4db7b1481bd94ef665cce6 (patch) | |
| tree | fa08ccea94fd5e1f2aea62db664878274e325469 | |
| parent | 0a901ebcb69bce880c20ed9669313c1f1c4cf315 (diff) | |
topotests: bump BFD test convergence time
Lets make the test more resilient to failures.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
| -rwxr-xr-x | tests/topotests/bfd-vrf-topo1/test_bfd_vrf_topo1.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/topotests/bfd-vrf-topo1/test_bfd_vrf_topo1.py b/tests/topotests/bfd-vrf-topo1/test_bfd_vrf_topo1.py index a72d49f432..b1f755ad06 100755 --- a/tests/topotests/bfd-vrf-topo1/test_bfd_vrf_topo1.py +++ b/tests/topotests/bfd-vrf-topo1/test_bfd_vrf_topo1.py @@ -168,7 +168,7 @@ def test_bfd_connection(): test_func = partial( topotest.router_json_cmp, router, "show bfd peers json", expected ) - _, result = topotest.run_and_expect(test_func, None, count=8, wait=0.5) + _, result = topotest.run_and_expect(test_func, None, count=16, wait=1) assertmsg = '"{}" JSON output mismatches'.format(router.name) assert result is None, assertmsg @@ -212,7 +212,7 @@ def test_bgp_fast_convergence(): "show ip bgp vrf {}-cust1 json".format(router.name), expected, ) - _, res = topotest.run_and_expect(test_func, None, count=40, wait=0.5) + _, res = topotest.run_and_expect(test_func, None, count=40, wait=1) assertmsg = "{}: bgp did not converge".format(router.name) assert res is None, assertmsg @@ -254,7 +254,7 @@ def test_bfd_fast_convergence(): test_func = partial( topotest.router_json_cmp, router, "show bfd peers json", expected ) - _, res = topotest.run_and_expect(test_func, None, count=20, wait=0.5) + _, res = topotest.run_and_expect(test_func, None, count=40, wait=1) assertmsg = '"{}" JSON output mismatches'.format(router.name) assert res is None, assertmsg @@ -287,7 +287,7 @@ def test_bgp_fast_reconvergence(): "show ip bgp vrf {}-cust1 json".format(router.name), expected, ) - _, res = topotest.run_and_expect(test_func, None, count=3, wait=1) + _, res = topotest.run_and_expect(test_func, None, count=16, wait=1) assertmsg = "{}: bgp did not converge".format(router.name) assert res is None, assertmsg |
