From ac99250fac804d4fdd02b640f9e7976967155502 Mon Sep 17 00:00:00 2001 From: Tanmay Deep Sharma <32020192+tds-1@users.noreply.github.com> Date: Thu, 3 Jul 2025 21:51:38 +0530 Subject: [PATCH] fix test case for circleci --- spec/enterprise/jobs/captain/documents/crawl_job_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/enterprise/jobs/captain/documents/crawl_job_spec.rb b/spec/enterprise/jobs/captain/documents/crawl_job_spec.rb index d3c0a9640..5a7870f65 100644 --- a/spec/enterprise/jobs/captain/documents/crawl_job_spec.rb +++ b/spec/enterprise/jobs/captain/documents/crawl_job_spec.rb @@ -17,7 +17,8 @@ RSpec.describe Captain::Documents::CrawlJob, type: :job do # Make sure we have the Firecrawl config properly set config = InstallationConfig.find_or_create_by(name: 'CAPTAIN_FIRECRAWL_API_KEY') - config.update(value: 'test-key') + config.value = 'test-key' + config.save! # Mock simple crawl service to avoid HTTP calls if it somehow gets called simple_crawler = instance_double(Captain::Tools::SimplePageCrawlService)