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