Skip to content

Commit

Permalink
tests: Remove sleep from test_bgp_maximum_prefix_invalid_update
Browse files Browse the repository at this point in the history
Sleep is not needed here while we fail instantly if maximum is reached.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
  • Loading branch information
ton31337 committed Oct 3, 2019
1 parent d091d9a commit 7630ff0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 7630ff0

Please sign in to comment.