From: Donatas Abraitis Date: Thu, 3 Oct 2019 11:08:51 +0000 (+0300) Subject: tests: Remove sleep from test_bgp_maximum_prefix_invalid_update X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=312d87b34f2fc93150efa49aec2c539b5df61d46;p=matthieu%2Ffrr.git 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 --- 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 69b8c7ca5e..e7f4f40f06 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'