summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2019-10-03 13:08:51 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2019-10-03 13:08:51 +0200
commit7630ff014e76ccd64b4c17745ea9482e5bd19459 (patch)
treeb730b1846b9cfa3a362e49ff4f57ed77b244cad5 /tests
parentbgpd: Keep the session down if maximum-prefix is reached (diff)
downloadfrr-7630ff014e76ccd64b4c17745ea9482e5bd19459.tar.xz
frr-7630ff014e76ccd64b4c17745ea9482e5bd19459.zip
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 <donatas.abraitis@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/topotests/bgp_maximum_prefix_invalid_update/test_bgp_maximum_prefix_invalid_update.py3
1 files changed, 1 insertions, 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'