]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: bfd_isis_topo1 expects unreasonable convergence times under load
authorDonald Sharp <sharpd@nvidia.com>
Fri, 22 Oct 2021 19:27:50 +0000 (15:27 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 22 Oct 2021 19:27:50 +0000 (15:27 -0400)
When our ci test system is under high load, expecting bfd to converge
in under 2 seconds is not going to happen.  Modify the test suites
to just ensure that things converge.  If we need actual functional
testing of bfd response times the topotests are not an appropriate place
to do this or we need to modify the test system to gather the data for
how long it takes after the tests are run.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
tests/topotests/bfd_isis_topo1/test_bfd_isis_topo1.py

index 3c176f25a3cd78552a079ee569e97ac64e810b8c..863c2969278fe6d2bf52522a31f1daaab5ef76b3 100644 (file)
@@ -72,7 +72,6 @@ import os
 import sys
 import pytest
 import json
-from time import sleep
 from functools import partial
 
 # Save the Current Working Directory to find configuration files.
@@ -193,15 +192,14 @@ def test_bfd_isis_interface_failure_rt2_step3():
     # By default BFD provides a recovery time of 900ms plus jitter, so let's wait
     # initial 2 seconds to let the CI not suffer.
     # TODO: add check for array size
-    sleep(2)
     router_compare_json_output(
-        "rt1", "show ip route isis json", "step3/show_ip_route_rt2_down.ref", 1, 0
+        "rt1", "show ip route isis json", "step3/show_ip_route_rt2_down.ref", 20, 10
     )
     router_compare_json_output(
-        "rt1", "show ipv6 route isis json", "step3/show_ipv6_route_rt2_down.ref", 1, 0
+        "rt1", "show ipv6 route isis json", "step3/show_ipv6_route_rt2_down.ref", 20, 1
     )
     router_compare_json_output(
-        "rt1", "show bfd peers json", "step3/show_bfd_peers_rt2_down.ref", 1, 0
+        "rt1", "show bfd peers json", "step3/show_bfd_peers_rt2_down.ref", 20, 1
     )
 
     # Check recovery, this can take some time
@@ -232,15 +230,14 @@ def test_bfd_isis_interface_failure_rt3_step3():
     # By default BFD provides a recovery time of 900ms plus jitter, so let's wait
     # initial 2 seconds to let the CI not suffer.
     # TODO: add check for array size
-    sleep(2)
     router_compare_json_output(
-        "rt1", "show ip route isis json", "step3/show_ip_route_rt3_down.ref", 1, 0
+        "rt1", "show ip route isis json", "step3/show_ip_route_rt3_down.ref", 20, 1
     )
     router_compare_json_output(
-        "rt1", "show ipv6 route isis json", "step3/show_ipv6_route_rt3_down.ref", 1, 0
+        "rt1", "show ipv6 route isis json", "step3/show_ipv6_route_rt3_down.ref", 20, 1
     )
     router_compare_json_output(
-        "rt1", "show bfd peers json", "step3/show_bfd_peers_rt3_down.ref", 1, 0
+        "rt1", "show bfd peers json", "step3/show_bfd_peers_rt3_down.ref", 20, 1
     )
 
     # Check recovery, this can take some time