]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: fix BGP delayopen timer expiration test 13971/head
authorDavid Schweizer <dschweizer@opensourcerouting.org>
Mon, 10 Jul 2023 13:46:05 +0000 (15:46 +0200)
committerDavid Schweizer <dschweizer@opensourcerouting.org>
Mon, 10 Jul 2023 13:46:05 +0000 (15:46 +0200)
The changes allow the test to correctly pass in case the connection
between two peers is be established in less than 0.5 seconds after the
delayopen timer expires.

Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
tests/topotests/bgp_features/test_bgp_features.py

index e033a0f00593f89ac79318c01d644ea0edd71bf5..43f4905d4186446765a88a2b359681044d0f64c2 100644 (file)
@@ -1063,7 +1063,7 @@ def test_bgp_delayopen_dual():
 
     delay_stop = int(time.time())
     assertmsg = "BGP peering between r2 and r5 was established before DelayOpenTimer (30sec) on r2 could expire"
-    assert (delay_stop - delay_start) > 30, assertmsg
+    assert (delay_stop - delay_start) >= 30, assertmsg
 
     # 3.8 unset delayopen on R2 and R5
     logger.info("Disabling DelayOpenTimer for neighbor r5 on r2")