Skip to content

Commit dac1816

Browse files
authored
chore: fix StopIteration on bgp test (#20746)
Description of PR Summary: Fix stop iteration for bgp t0/t1 device @decorator.decorator def _fixture_generator_decorator(fixture_generator, *args, **kargs): # setup, to the first yield in fixture logging.info("-" * 20 + (" fixture %s setup starts " % fixture_generator.__name__) + "-" * 20) it = fixture_generator(*args, **kargs) try: > res = next(it) E StopIteration Fixes # (issue) 3498901 Signed-off-by: Austin Pham <[email protected]>
1 parent 8e6ccd7 commit dac1816

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/snappi_tests/bgp/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ def _handler(key, arr_dict_value):
280280
@pytest.fixture(scope="session", autouse=True)
281281
def initial_setup(duthosts, creds, tbinfo):
282282
if 'route_conv' not in tbinfo['topo']['name']:
283+
yield
283284
return
284285

285286
"""Perform initial DUT configurations (T1, Fanout) for convergence tests (runs once per test session)."""

0 commit comments

Comments
 (0)