diff --git a/tests/topotests/isis_topo1/test_isis_topo1.py b/tests/topotests/isis_topo1/test_isis_topo1.py index 51328cfafa09..3b3d223e25ba 100644 --- a/tests/topotests/isis_topo1/test_isis_topo1.py +++ b/tests/topotests/isis_topo1/test_isis_topo1.py @@ -726,13 +726,13 @@ def _check_isis_neighbor_json(router, neighbor, neighbor_expected, neighbor_stat neighbor_json = json.loads(isis_neightor_output) result = _check_isis_neighbor_exist(router, neighbor, eth) - if result == True + if result == True: return _check_isis_neighbor_state(router, neighbor, neighbor_state_expected, eth) - elif neighbor_expected == True + elif neighbor_expected == True: return "{} with expected neighbor {} got none ".format( router.name, neighbor ) - else + else: return True @retry(retry_timeout=5)