Skip to content

Commit 2328d17

Browse files
committed
tests: bgp_set_aspath_exclude extend timers
Extend timers in bgp_set_aspath_exclude in case of high load on the CI. Signed-off-by: Louis Scalbert <[email protected]>
1 parent e9c4b33 commit 2328d17

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/topotests/bgp_set_aspath_exclude/test_bgp_set_aspath_exclude.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_bgp_set_aspath_exclude():
108108
pytest.skip(tgen.errors)
109109

110110
test_func = functools.partial(bgp_converge, tgen.gears["r1"], expected_1)
111-
_, result = topotest.run_and_expect(test_func, None, count=30, wait=0.5)
111+
_, result = topotest.run_and_expect(test_func, None, count=60, wait=0.5)
112112

113113
assert result is None, "Failed overriding incoming AS-PATH with route-map"
114114

@@ -139,7 +139,7 @@ def test_bgp_set_aspath_exclude_access_list():
139139
)
140140

141141
test_func = functools.partial(bgp_converge, tgen.gears["r1"], expected_2)
142-
_, result = topotest.run_and_expect(test_func, None, count=30, wait=0.5)
142+
_, result = topotest.run_and_expect(test_func, None, count=60, wait=0.5)
143143

144144
assert result is None, "Failed change of exclude rule in route map"
145145
r1.vtysh_cmd(
@@ -152,7 +152,7 @@ def test_bgp_set_aspath_exclude_access_list():
152152

153153
# tgen.mininet_cli()
154154
test_func = functools.partial(bgp_converge, tgen.gears["r1"], expected_1)
155-
_, result = topotest.run_and_expect(test_func, None, count=30, wait=0.5)
155+
_, result = topotest.run_and_expect(test_func, None, count=60, wait=0.5)
156156

157157
assert result is None, "Failed reverting exclude rule in route map"
158158

@@ -180,7 +180,7 @@ def test_no_bgp_set_aspath_exclude_access_list():
180180
)
181181

182182
test_func = functools.partial(bgp_converge, tgen.gears["r1"], expected_3)
183-
_, result = topotest.run_and_expect(test_func, None, count=30, wait=0.5)
183+
_, result = topotest.run_and_expect(test_func, None, count=60, wait=0.5)
184184

185185
assert result is None, "Failed to removing current accesslist"
186186

@@ -198,7 +198,7 @@ def test_no_bgp_set_aspath_exclude_access_list():
198198
)
199199

200200
test_func = functools.partial(bgp_converge, tgen.gears["r1"], expected_4)
201-
_, result = topotest.run_and_expect(test_func, None, count=30, wait=0.5)
201+
_, result = topotest.run_and_expect(test_func, None, count=60, wait=0.5)
202202

203203
assert result is None, "Failed to renegotiate with peers 2"
204204

@@ -217,7 +217,7 @@ def test_no_bgp_set_aspath_exclude_access_list():
217217
)
218218

219219
test_func = functools.partial(bgp_converge, tgen.gears["r1"], expected_3)
220-
_, result = topotest.run_and_expect(test_func, None, count=30, wait=0.5)
220+
_, result = topotest.run_and_expect(test_func, None, count=60, wait=0.5)
221221

222222
assert result is None, "Failed to renegotiate with peers 2"
223223

@@ -236,7 +236,7 @@ def test_no_bgp_set_aspath_exclude_access_list():
236236
)
237237

238238
test_func = functools.partial(bgp_converge, tgen.gears["r1"], expected_3)
239-
_, result = topotest.run_and_expect(test_func, None, count=30, wait=0.5)
239+
_, result = topotest.run_and_expect(test_func, None, count=60, wait=0.5)
240240

241241
assert result is None, "Failed to renegotiate with peers 2"
242242

0 commit comments

Comments
 (0)