Skip to content

Commit

Permalink
removed error
Browse files Browse the repository at this point in the history
  • Loading branch information
kanza-latif committed Dec 31, 2024
1 parent 3a73d97 commit bd2e854
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_config_stp.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ def test_is_valid_root_guard_timeout():
pytest.fail("Unexpected failure on valid root guard timeout")

# Invalid case
with pytest.raises(SystemExit):
is_valid_root_guard_timeout(mock_ctx, 700)
mock_ctx.fail = MagicMock() # Mocking the fail method to prevent actual exit
is_valid_root_guard_timeout(mock_ctx, 700)
mock_ctx.fail.assert_called_once_with("STP root guard timeout must be in range 5-600")


def test_is_valid_forward_delay():
Expand Down

0 comments on commit bd2e854

Please sign in to comment.