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
16 changes: 0 additions & 16 deletions tests/test_bootstrap.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import asyncio
import json
import os
from unittest.mock import MagicMock
Expand Down Expand Up @@ -130,21 +129,6 @@ def test_reset_bootstrap_cancels_running_tasks(self):
setup_task.cancel.assert_called_once_with()
login_task.cancel.assert_called_once_with()

async def test_cancelled_setup_task_retries_cleanly(self):
initialize_bootstrap("managed")
state = get_bootstrap_state()
task = asyncio.create_task(asyncio.sleep(10), name="browser-setup")
task.cancel()
with pytest.raises(asyncio.CancelledError):
await task
state.setup_task = task

with pytest.raises(BrowserSetupInProgressError):
await ensure_tool_ready_or_raise("search_jobs")

assert state.setup_state is SetupState.RUNNING
assert state.setup_task is not None

def test_managed_browser_path_defaults_under_auth_root(self, isolate_profile_dir):
path = browsers_path()
assert path == isolate_profile_dir.parent / "patchright-browsers"
Expand Down
Loading