From a335704905e0b0e7764858d80df23ce2d434c3cc Mon Sep 17 00:00:00 2001 From: cfdaily Date: Tue, 2 Jun 2026 07:49:23 +0800 Subject: [PATCH] auto-sync: 2026-06-02 07:49:23 --- tests/test_four_phase_unit.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_four_phase_unit.py b/tests/test_four_phase_unit.py index cdc6aac..bba6fb8 100644 --- a/tests/test_four_phase_unit.py +++ b/tests/test_four_phase_unit.py @@ -207,6 +207,8 @@ class TestU3RoundComplete: # mock spawner mock_spawner = MagicMock() mock_spawner.spawn_full_agent = AsyncMock(return_value="session-1") + mock_spawner.api_host = "127.0.0.1" + mock_spawner.api_port = 8083 ticker = Ticker(registry=ProjectRegistry(Path("/tmp/fake")), spawner=mock_spawner, dispatcher=MagicMock()) @@ -271,6 +273,8 @@ class TestU4RoundWithFailed: mock_spawner = MagicMock() mock_spawner.spawn_full_agent = AsyncMock(return_value="session-1") + mock_spawner.api_host = "127.0.0.1" + mock_spawner.api_port = 8083 ticker = Ticker(registry=MagicMock(), spawner=mock_spawner, dispatcher=MagicMock()) @@ -327,6 +331,8 @@ class TestU5RoundLimit: mock_spawner = MagicMock() mock_spawner.spawn_full_agent = AsyncMock(return_value="session-1") + mock_spawner.api_host = "127.0.0.1" + mock_spawner.api_port = 8083 ticker = Ticker(registry=MagicMock(), spawner=mock_spawner, dispatcher=MagicMock()) @@ -367,6 +373,8 @@ class TestU6MentionGrouping: mock_spawner.spawn_full_agent = AsyncMock(return_value="session-1") mock_spawner.api_host = "127.0.0.1" mock_spawner.api_port = 8083 + mock_spawner.api_host = "127.0.0.1" + mock_spawner.api_port = 8083 ticker = Ticker(registry=MagicMock(), spawner=mock_spawner, dispatcher=MagicMock())