fix tests -> count of running jobs were decreased

This commit is contained in:
oleghasjanov 2025-01-13 11:50:42 +02:00
parent bbdf44583c
commit 19df0cd57f
2 changed files with 2 additions and 3 deletions

View file

@ -75,8 +75,7 @@ class CompanyRegisterStatusJob < ApplicationJob
def check_for_force_delete(contact) def check_for_force_delete(contact)
contact.registrant_domains.any? do |domain| contact.registrant_domains.any? do |domain|
notes = domain.status_notes[DomainStatus::FORCE_DELETE] domain.force_delete_scheduled? && notes.include?("Company no: #{contact.ident}")
notes && notes.include?("Company no: #{contact.ident}")
end end
end end

View file

@ -532,7 +532,7 @@ class ForceDeleteTest < ActionMailer::TestCase
assert_equal Date.parse('2010-09-19'), @domain.force_delete_date.to_date assert_equal Date.parse('2010-09-19'), @domain.force_delete_date.to_date
assert_equal Date.parse('2010-08-05'), @domain.force_delete_start.to_date assert_equal Date.parse('2010-08-05'), @domain.force_delete_start.to_date
assert_enqueued_jobs 8 assert_enqueued_jobs 6
end end
def prepare_bounced_email_address(email) def prepare_bounced_email_address(email)