Commit b0e7efb5 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Fix flaky time related spec

Also removes test from quarantine
parent 04307096
...@@ -128,8 +128,10 @@ describe Ci::PipelineSchedule do ...@@ -128,8 +128,10 @@ describe Ci::PipelineSchedule do
context 'when pipeline schedule runs every minute' do context 'when pipeline schedule runs every minute' do
let(:pipeline_schedule) { create(:ci_pipeline_schedule, :every_minute) } let(:pipeline_schedule) { create(:ci_pipeline_schedule, :every_minute) }
it "updates next_run_at to the sidekiq worker's execution time", :quarantine do it "updates next_run_at to the sidekiq worker's execution time" do
expect(pipeline_schedule.next_run_at).to eq(cron_worker_next_run_at) Timecop.freeze do
expect(pipeline_schedule.next_run_at).to eq(cron_worker_next_run_at)
end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment