Applies the copilot suggestions for the documentation updates

This commit is contained in:
Trenton H
2026-01-13 13:11:33 -08:00
parent 97bd98d442
commit 6de8ba0ca1
4 changed files with 16 additions and 12 deletions

View File

@@ -830,7 +830,7 @@ class TestCommandWatchPolling:
"""Tests for polling mode."""
@pytest.mark.django_db
@pytest.mark.flaky(reruns=5)
@pytest.mark.flaky(reruns=2)
def test_polling_mode_works(
self,
consumption_dir: Path,
@@ -838,7 +838,10 @@ class TestCommandWatchPolling:
mock_consume_file_delay: MagicMock,
start_consumer: Callable[..., ConsumerThread],
) -> None:
"""Test polling mode detects files."""
"""
Test polling mode detects files.
Note: At times, there appears to be a timing issue, where delay has not yet been called, hence this is marked as flaky.
"""
# Use shorter polling interval for faster test
thread = start_consumer(polling_interval=0.5, stability_delay=0.1)