Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

run only one proc for tests for now

Nick Sweetingfe3af9479af1
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 88c624df1..1ca8ac594 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -89,7 +89,7 @@ jobs:
#- run: playwright install chrome # tests that need it can install it manually
- run: playwright install chromium
- - run: pytest --numprocesses auto tests/ci/${{ matrix.test_filename }}.py
+ - run: pytest tests/ci/${{ matrix.test_filename }}.py
evaluate-tasks:
runs-on: ubuntu-latest
diff --git a/tests/ci/test_browser_session_ownership.py b/tests/ci/test_browser_session_ownership.py
index 5ca29b9a6..a9da66302 100644
--- a/tests/ci/test_browser_session_ownership.py
+++ b/tests/ci/test_browser_session_ownership.py
@@ -95,7 +95,7 @@ class TestBrowserOwnership:
await asyncio.sleep(0.1)
# Browser should still be alive because the original session still owns it
- assert await original_session.is_connected()
+ assert await original_session.is_connected(restart=False)
assert original_session.browser_pid == initial_browser_pid
# Create second agent
@@ -133,14 +133,14 @@ class TestBrowserOwnership:
await asyncio.sleep(0.1)
# Browser should still be alive
- assert await original_session.is_connected()
+ assert await original_session.is_connected(restart=False)
assert original_session.browser_pid == initial_browser_pid
# Now clean up the original - use kill() since keep_alive=True
await original_session.kill()
# Browser should be disconnected now
- assert not await original_session.is_connected()
+ assert not await original_session.is_connected(restart=False)
async def test_shared_browser_recovery_after_disconnect(self, httpserver):
"""Test that copied sessions can recover if the shared browser is disconnected."""