From a04c48f50d134fdb70218f7d7d978b5712ea1196 Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Tue, 24 Feb 2026 14:39:00 +0100 Subject: [PATCH] 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 --- tests/unit/crawlers/_basic/test_basic_crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/crawlers/_basic/test_basic_crawler.py b/tests/unit/crawlers/_basic/test_basic_crawler.py index 23ca3c1eca..fb0b403ab6 100644 --- a/tests/unit/crawlers/_basic/test_basic_crawler.py +++ b/tests/unit/crawlers/_basic/test_basic_crawler.py @@ -1375,7 +1375,7 @@ async def test_timeout_in_handler(sleep_type: str) -> None: # Test is skipped in older Python versions. from asyncio import timeout # type:ignore[attr-defined] # noqa: PLC0415 - non_realtime_system_coefficient = 2 + non_realtime_system_coefficient = 10 handler_timeout = timedelta(seconds=1) max_request_retries = 3 double_handler_timeout_s = handler_timeout.total_seconds() * 2