From c0bab84dc11421226ca36649f69e299cdba988f9 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Fri, 1 Jun 2018 17:34:19 +0200 Subject: [PATCH] Fix random build error Spec usually failed when there was an UpdateGravatar job for the system user. --- spec/jobs/jobs_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/jobs/jobs_spec.rb b/spec/jobs/jobs_spec.rb index 9f49d3d5b6c..01cbe6a225f 100644 --- a/spec/jobs/jobs_spec.rb +++ b/spec/jobs/jobs_spec.rb @@ -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)