Fix flaky time related spec
Also removes test from quarantine
This commit is contained in:
parent
04307096bc
commit
b0e7efb5c2
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue