summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schweizer <dschweizer@opensourcerouting.org>2024-02-07 13:50:53 +0100
committerDavid Schweizer <dschweizer@opensourcerouting.org>2024-02-07 13:56:10 +0100
commit1bd96365e456cdf9345010cb231ebac4e0af2ea7 (patch)
tree16a76f751e8197adf099cb5307ccdc9d30e0ed17
parent961667e34f160a1e1a0ec85becaa4feb0e262a87 (diff)
tests: Reduce wait intervals in test_bgp_snmp_bgp4v2mib
Remove sleep time in test_bgp_snmp_bgp4v2mib before run_and_expect and reduce wait intervals for faster test convergence. Signed-off-by: Martin Winter <mwinter@opensourcerouting.org> Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
-rwxr-xr-xtests/topotests/bgp_snmp_bgp4v2mib/test_bgp_snmp_bgp4v2mib.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/topotests/bgp_snmp_bgp4v2mib/test_bgp_snmp_bgp4v2mib.py b/tests/topotests/bgp_snmp_bgp4v2mib/test_bgp_snmp_bgp4v2mib.py
index 8cd49e3548..c296aaaf6d 100755
--- a/tests/topotests/bgp_snmp_bgp4v2mib/test_bgp_snmp_bgp4v2mib.py
+++ b/tests/topotests/bgp_snmp_bgp4v2mib/test_bgp_snmp_bgp4v2mib.py
@@ -276,7 +276,7 @@ def test_bgp_snmp_bgp4v2():
pytest.skip(error_msg)
rr.vtysh_cmd("clear bgp *")
- _, result = topotest.run_and_expect(_snmptrap_ipv4, True, count=2, wait=10)
+ _, result = topotest.run_and_expect(_snmptrap_ipv4, True, count=30, wait=1)
assertmsg = "Can't fetch SNMP trap for ipv4"
assert result, assertmsg
@@ -308,8 +308,7 @@ def test_bgp_snmp_bgp4v2():
r2.vtysh_cmd("conf\nbgp snmp traps bgp4-mibv2")
r2.vtysh_cmd("conf\nno bgp snmp traps rfc4273")
rr.vtysh_cmd("clear bgp *")
- sleep(30)
- _, result = topotest.run_and_expect(_snmptrap_ipv6, True, count=2, wait=10)
+ _, result = topotest.run_and_expect(_snmptrap_ipv6, True, count=60, wait=1)
assertmsg = "Can't fetch SNMP trap for ipv6"
assert result, assertmsg