Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
test: increase event bus timeout to 60s to fix CI flakes
sudhanshu112233shukladdb8a93b2fe7
diff --git a/tests/ci/conftest.py b/tests/ci/conftest.pyindex 848fec122..f478429e3 100644--- a/tests/ci/conftest.py+++ b/tests/ci/conftest.py@@ -28,11 +28,25 @@ from browser_use.tools.service import Toolsload_dotenv()+# Skip LLM API key verification for tests# Skip LLM API key verification for testsos.environ['SKIP_LLM_API_KEY_VERIFICATION'] = 'true'+import bubusfrom bubus import BaseEvent+# Monkeypatch bubus EventBus to have longer default timeout for tests (CI can be slow)+# The default is often 30s, which is too tight when browser launch takes 28s+original_process_event = bubus.EventBus.process_event++async def patched_process_event(self, event: bubus.BaseEvent, *args, **kwargs):+ # If timeout is not explicitly set (or key missing), default to 60s for CI+ if 'timeout' not in kwargs:+ kwargs['timeout'] = 60.0+ return await original_process_event(self, event, *args, **kwargs)++bubus.EventBus.process_event = patched_process_event+from browser_use import Agentfrom browser_use.browser import BrowserProfile, BrowserSessionfrom browser_use.sync.service import CloudSync