]> git.proxmox.com Git - mirror_frr.git/commitdiff
topotests: bump BFD test convergence time
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 18 Jun 2020 11:42:11 +0000 (08:42 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 18 Jun 2020 11:42:11 +0000 (08:42 -0300)
Lets make the test more resilient to failures.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
tests/topotests/bfd-vrf-topo1/test_bfd_vrf_topo1.py

index a72d49f432661af284b92539bab00dd2a27e3d4c..b1f755ad06d09f289aa65d475f18da7977b9066d 100755 (executable)
@@ -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