Skip to content

Commit

Permalink
Update test_isis_topo1.py
Browse files Browse the repository at this point in the history
1

Signed-off-by: zhou-run <zhou.run@h3c.com>
  • Loading branch information
zhou-run authored Aug 1, 2024
1 parent a5db02a commit d5f1905
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/topotests/isis_topo1/test_isis_topo1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d5f1905

Please sign in to comment.