From 59640b7223e263a6b7ce478d506128ffced8d2e7 Mon Sep 17 00:00:00 2001 From: David Schweizer Date: Mon, 10 Jul 2023 15:46:05 +0200 Subject: [PATCH] tests: fix BGP delayopen timer expiration test 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 --- tests/topotests/bgp_features/test_bgp_features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/topotests/bgp_features/test_bgp_features.py b/tests/topotests/bgp_features/test_bgp_features.py index e033a0f005..43f4905d41 100644 --- a/tests/topotests/bgp_features/test_bgp_features.py +++ b/tests/topotests/bgp_features/test_bgp_features.py @@ -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") -- 2.39.5