From fda3b2c1193084576bdac385229a018d26da2744 Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Tue, 26 May 2026 16:30:21 +0200 Subject: [PATCH] test: Mark `test_resource_management` flaky on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The prior timeout bump did not address the real failure mode: on Windows under xdist load, Chromium hits `net::ERR_NO_BUFFER_SPACE` when opening the socket — not a slow response. Match the existing project precedent for this exact failure (`@pytest.mark.flaky(reruns=3)`). --- tests/unit/browsers/test_browser_pool.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/browsers/test_browser_pool.py b/tests/unit/browsers/test_browser_pool.py index 7ac99eb9e2..0156073e7c 100644 --- a/tests/unit/browsers/test_browser_pool.py +++ b/tests/unit/browsers/test_browser_pool.py @@ -138,6 +138,10 @@ async def test_new_page_with_invalid_plugin() -> None: await browser_pool.new_page(browser_plugin=plugin_2) +@pytest.mark.flaky( + reruns=3, + reason='Test is flaky on Windows when Playwright hits net::ERR_NO_BUFFER_SPACE under xdist load.', +) async def test_resource_management(server_url: URL) -> None: playwright_plugin = PlaywrightBrowserPlugin(browser_type='chromium')