From 7bb32c29be9b2bcf974d27f7fa0037c1af45f981 Mon Sep 17 00:00:00 2001 From: STiFLeR7 Date: Fri, 9 Oct 2026 09:37:27 +0530 Subject: [PATCH] fix(tests): give the root agent a real session in the pending-report wait test test_wait_delivers_a_pending_report_before_checking_liveness asserted message_arrived against a root agent with no attached session, which only passed because consume_pending used to misreport delivery on a failed write. Now that it correctly returns (0, []) when there's no session to persist to, give the test a real SQLiteSession, matching every other agent-with-a-session test in this suite. Co-Authored-By: Claude Sonnet 5 --- tests/test_agent_graph_coordination.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_agent_graph_coordination.py b/tests/test_agent_graph_coordination.py index 9694656a..ef3e8dc9 100644 --- a/tests/test_agent_graph_coordination.py +++ b/tests/test_agent_graph_coordination.py @@ -13,6 +13,7 @@ import json from typing import TYPE_CHECKING, Any, cast import pytest +from agents.memory import SQLiteSession from agents.tool_context import ToolContext from strix.core.agents import AgentCoordinator @@ -162,8 +163,12 @@ async def test_wait_returns_at_once_when_no_child_can_answer() -> None: @pytest.mark.asyncio -async def test_wait_delivers_a_pending_report_before_checking_liveness() -> None: +async def test_wait_delivers_a_pending_report_before_checking_liveness( + tmp_path: Path, +) -> None: coordinator = await _graph(interactive=False) + session = SQLiteSession("root", tmp_path / "agents.db") + await coordinator.attach_runtime("root", session=session) await coordinator.send("root", {"from": "child", "type": "completion", "content": "done"}) await coordinator.set_status("child", "completed")