Skip to content

Commit a04c48f

Browse files
vdusekclaude
andcommitted
test: Increase timeout coefficient in flaky test_timeout_in_handler
The outer asyncio.timeout(12s) was too tight for slow CI machines (macOS/Windows), causing the test to be cancelled before all retries could complete. Increased non_realtime_system_coefficient from 2 to 10 (60s timeout) to provide sufficient headroom. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 142e4ef commit a04c48f

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)