From 5ec0a8fe4a2ab0545eec94de83da5098b8b8a5ef Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Thu, 3 Oct 2019 14:08:51 +0300 Subject: [PATCH] tests: Remove sleep from test_bgp_maximum_prefix_invalid_update Sleep is not needed here while we fail instantly if maximum is reached. Signed-off-by: Donatas Abraitis --- .../test_bgp_maximum_prefix_invalid_update.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/topotests/bgp_maximum_prefix_invalid_update/test_bgp_maximum_prefix_invalid_update.py b/tests/topotests/bgp_maximum_prefix_invalid_update/test_bgp_maximum_prefix_invalid_update.py index 69b8c7ca5..e7f4f40f0 100644 --- a/tests/topotests/bgp_maximum_prefix_invalid_update/test_bgp_maximum_prefix_invalid_update.py +++ b/tests/topotests/bgp_maximum_prefix_invalid_update/test_bgp_maximum_prefix_invalid_update.py @@ -89,9 +89,8 @@ def test_bgp_maximum_prefix_invalid(): def _bgp_converge(router): while True: output = json.loads(tgen.gears[router].vtysh_cmd("show ip bgp neighbor 192.168.255.1 json")) - if output['192.168.255.1']['connectionsEstablished'] > 3: + if output['192.168.255.1']['connectionsEstablished'] > 0: return True - time.sleep(1) def _bgp_parsing_nlri(router): cmd_max_exceeded = 'grep "%MAXPFXEXCEED: No. of IPv4 Unicast prefix received" bgpd.log' -- 2.39.2