diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-06-18 08:07:23 +0800 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-06-18 16:10:34 +0800 |
commit | b0e7efb5c2dd47dcd6998def5eaa8bbc46a5bb89 (patch) | |
tree | 48618b8865982612138fb8a061b5c49e196d36fa | |
parent | 04307096bcc776259d8080bebd688ff6073d07c4 (diff) | |
download | gitlab-ce-b0e7efb5c2dd47dcd6998def5eaa8bbc46a5bb89.tar.gz |
Fix flaky time related spec62760-unquarantine-spec
Also removes test from quarantine
-rw-r--r-- | spec/models/ci/pipeline_schedule_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/models/ci/pipeline_schedule_spec.rb b/spec/models/ci/pipeline_schedule_spec.rb index 227870eb27f..c4d8ad5317a 100644 --- a/spec/models/ci/pipeline_schedule_spec.rb +++ b/spec/models/ci/pipeline_schedule_spec.rb @@ -128,8 +128,10 @@ describe Ci::PipelineSchedule do context 'when pipeline schedule runs every minute' do let(:pipeline_schedule) { create(:ci_pipeline_schedule, :every_minute) } - it "updates next_run_at to the sidekiq worker's execution time", :quarantine do - expect(pipeline_schedule.next_run_at).to eq(cron_worker_next_run_at) + it "updates next_run_at to the sidekiq worker's execution time" do + Timecop.freeze do + expect(pipeline_schedule.next_run_at).to eq(cron_worker_next_run_at) + end end end |