Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/unit/browsers/test_browser_pool.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

from datetime import timedelta
from typing import TYPE_CHECKING
from unittest.mock import AsyncMock

Expand Down Expand Up @@ -77,7 +78,9 @@ async def test_new_page_with_each_plugin(server_url: URL) -> None:
plugin_chromium = PlaywrightBrowserPlugin(browser_type='chromium')
plugin_firefox = PlaywrightBrowserPlugin(browser_type='firefox')

async with BrowserPool([plugin_chromium, plugin_firefox]) as browser_pool:
# Launching Chromium and Firefox concurrently is resource-heavy and can exceed the default
# operation timeout on slow CI runners. Use a generous timeout to keep the test stable.
async with BrowserPool([plugin_chromium, plugin_firefox], operation_timeout=timedelta(seconds=180)) as browser_pool:
pages = await browser_pool.new_page_with_each_plugin()

assert len(pages) == 2
Expand Down
Loading