From 598cbf5dae42e0bf0828c0e29c8cb44b522f4d11 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 15 Sep 2026 13:26:45 +0800 Subject: [PATCH] =?UTF-8?q?test(agent):=20=E4=BF=AE=E6=AD=A3=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E6=97=B6=E9=85=8D=E7=BD=AE=E6=B3=A8=E5=85=A5=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_agent_tool_timeouts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_agent_tool_timeouts.py b/tests/test_agent_tool_timeouts.py index ed9c67119..529dc0381 100644 --- a/tests/test_agent_tool_timeouts.py +++ b/tests/test_agent_tool_timeouts.py @@ -258,7 +258,7 @@ def test_create_agent_config_uses_llm_max_iterations(): agent._create_agent = _create_agent agent.stream_handler.stop_streaming = lambda: asyncio.sleep(0, result=(False, "")) - with patch("app.agent.orchestrator.settings.LLM_MAX_ITERATIONS", 7): + with patch("app.agent.orchestrator.get_runtime_setting", return_value=7): await agent._execute_agent([]) return fake_agent.config