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
3 changes: 3 additions & 0 deletions tests/adapters/test_codex_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,9 @@ def test_codex_logs_into_mcp_server_before_first_turn(
mock_codex.mcp_auth_statuses["remote"] = adapter.McpAuthStatus.not_logged_in
open_browser = AsyncMock(return_value=True)
monkeypatch.setattr(adapter, "_open_authorization_url", open_browser)
# Give the login an exact remaining budget, so the rounding check does not
# depend on how long the runner takes before the adapter reads the clock.
monkeypatch.setattr(adapter, "_remaining_timeout", lambda _: invocation_timeout)

output = invoke_once(codex_payload)

Expand Down
Loading