Fix random build error
Spec usually failed when there was an UpdateGravatar job for the system user.
This commit is contained in:
parent
b970b072f6
commit
c0bab84dc1
|
@ -77,6 +77,7 @@ describe Jobs do
|
|||
|
||||
it 'deletes the matching job' do
|
||||
Sidekiq::Testing.disable! do
|
||||
scheduled_jobs.clear
|
||||
expect(scheduled_jobs.size).to eq(0)
|
||||
|
||||
Jobs.enqueue_in(1.year, :run_heartbeat, topic_id: 123)
|
||||
|
|
Loading…
Reference in New Issue