Skip to content

Commit 14b342a

Browse files
committed
test: disable LAN bufferbloat test in ping toggle unit tests to prevent side effects
1 parent c896fb6 commit 14b342a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/test_main_flow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def mock_tasks():
5151
def test_perform_checks_local_ping_toggle(mock_tasks, monkeypatch):
5252
"""Tests that RUN_LOCAL_PING_TEST config toggles the task call."""
5353
monkeypatch.setattr(config_module, "RUN_LOCAL_GATEWAY_PING_TEST", False)
54+
# Disable LAN bufferbloat so it doesn't call run_local_ping_task later
55+
monkeypatch.setattr(config_module, "RUN_LAN_BUFFERBLOAT_TEST", False)
5456

5557
monkeypatch.setattr(config_module, "RUN_LOCAL_PING_TEST", True)
5658
perform_checks()
@@ -66,6 +68,8 @@ def test_perform_checks_local_ping_toggle(mock_tasks, monkeypatch):
6668
def test_perform_checks_local_gateway_ping_toggle(mock_tasks, monkeypatch):
6769
"""Tests that RUN_LOCAL_GATEWAY_PING_TEST config toggles the task call."""
6870
monkeypatch.setattr(config_module, "RUN_LOCAL_PING_TEST", False)
71+
# Disable LAN bufferbloat so it doesn't call run_local_ping_task later
72+
monkeypatch.setattr(config_module, "RUN_LAN_BUFFERBLOAT_TEST", False)
6973

7074
monkeypatch.setattr(config_module, "RUN_LOCAL_GATEWAY_PING_TEST", True)
7175
perform_checks()

0 commit comments

Comments
 (0)