Fix random build error

Spec usually failed when there was an UpdateGravatar job for the system user.
This commit is contained in:
Gerhard Schlager 2018-06-01 17:34:19 +02:00
parent b970b072f6
commit c0bab84dc1
1 changed files with 1 additions and 0 deletions

View File

@ -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)