diff --git a/spec/models/ai_tool_spec.rb b/spec/models/ai_tool_spec.rb index f5751052..0df68dea 100644 --- a/spec/models/ai_tool_spec.rb +++ b/spec/models/ai_tool_spec.rb @@ -160,15 +160,15 @@ RSpec.describe AiTool do } JS - tool = create_tool(script: script) - runner = tool.runner({ "query" => "test" }, llm: nil, bot_user: nil, context: {}) - stub_request(:get, "https://example.com/test").to_return do sleep 0.01 { status: 200, body: "Hello World", headers: {} } end - runner.timeout = 5 + tool = create_tool(script: script) + runner = tool.runner({ "query" => "test" }, llm: nil, bot_user: nil, context: {}) + + runner.timeout = 10 result = runner.invoke