Skip to content

Commit 7f7d45e

Browse files
authored
test: Fix flaky test_timeout_in_handler (#1764)
## Summary - Increased `non_realtime_system_coefficient` from 2 to 10 in `test_timeout_in_handler` to fix CI flakiness - The outer `asyncio.timeout(12s)` was too tight for slow CI machines (macOS/Windows), causing the crawler run to be cancelled before all 3 retry attempts could complete - New timeout of 60s provides sufficient headroom while the test still completes in ~2s locally
1 parent 142e4ef commit 7f7d45e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/crawlers/_basic/test_basic_crawler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ async def test_timeout_in_handler(sleep_type: str) -> None:
13751375
# Test is skipped in older Python versions.
13761376
from asyncio import timeout # type:ignore[attr-defined] # noqa: PLC0415
13771377

1378-
non_realtime_system_coefficient = 2
1378+
non_realtime_system_coefficient = 10
13791379
handler_timeout = timedelta(seconds=1)
13801380
max_request_retries = 3
13811381
double_handler_timeout_s = handler_timeout.total_seconds() * 2

0 commit comments

Comments
 (0)