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
4 changes: 4 additions & 0 deletions backend/test/test_execute_all_phases_connection_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ async def test_connection_error_aborts_without_checkpoint(tmp_path: Path) -> Non
svc = Mock()
svc.update_workspace_phase = AsyncMock()
svc.update_deployment_workspace_phase = AsyncMock()
# No live DB in this unit test: execute_all_phases derives db_adapter from the
# service for the per-phase cancellation check; None makes raise_if_cancelled a
# no-op (its documented DB-less path) so the connection-error abort is reached.
svc.db_adapter = None

async def fake_phase_fn(**kwargs):
return AgentResult(
Expand Down