mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Add sidekiq as a job backend
This commit is contained in:
parent
313731232e
commit
929ada8fd0
22 changed files with 109 additions and 154 deletions
|
@ -10,13 +10,7 @@ class StartTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
def test_sets_expired
|
||||
job_count = lambda do
|
||||
QueJob.where("args->>0 = '#{@domain.id}'", job_class: DomainExpireEmailJob.name).count
|
||||
end
|
||||
|
||||
one_job_per_contact_email = @domain.expired_domain_contact_emails.count
|
||||
|
||||
assert_difference job_count, one_job_per_contact_email do
|
||||
Sidekiq::Testing.fake! do
|
||||
perform_enqueued_jobs do
|
||||
DomainCron.start_expire_period
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue