diff options
| author | David Schweizer <dschweizer@opensourcerouting.org> | 2023-07-10 15:46:05 +0200 |
|---|---|---|
| committer | David Schweizer <dschweizer@opensourcerouting.org> | 2023-07-10 15:46:05 +0200 |
| commit | 59640b7223e263a6b7ce478d506128ffced8d2e7 (patch) | |
| tree | 10e6f8181d0f68e8393f12649205df5b83260d57 /tests/topotests/bgp_features | |
| parent | b35dbae2c20f9708ba092e27c1d7f5ddd873be30 (diff) | |
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 <dschweizer@opensourcerouting.org>
Diffstat (limited to 'tests/topotests/bgp_features')
| -rw-r--r-- | tests/topotests/bgp_features/test_bgp_features.py | 2 |
1 files changed, 1 insertions, 1 deletions
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") |
