diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-06-19 17:27:44 +0800 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-06-19 17:27:44 +0800 |
commit | 31cef128e8535c9f9701755024b18f04194f472c (patch) | |
tree | 825403701b7262b26845a4db7f3bf73ede46c61a /spec | |
parent | 8716eb0cef94dbbaab5821aa693a9d92fa9f37e8 (diff) | |
download | gitlab-ce-31cef128e8535c9f9701755024b18f04194f472c.tar.gz |
Set a fixed date in pipeline shedule spec
Fixes flaky master
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/ci/pipeline_schedule_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/ci/pipeline_schedule_spec.rb b/spec/models/ci/pipeline_schedule_spec.rb index c4d8ad5317a..d7b81caddf5 100644 --- a/spec/models/ci/pipeline_schedule_spec.rb +++ b/spec/models/ci/pipeline_schedule_spec.rb @@ -129,7 +129,7 @@ describe Ci::PipelineSchedule do let(:pipeline_schedule) { create(:ci_pipeline_schedule, :every_minute) } it "updates next_run_at to the sidekiq worker's execution time" do - Timecop.freeze do + Timecop.freeze(2019, 06, 19, 12, 00) do expect(pipeline_schedule.next_run_at).to eq(cron_worker_next_run_at) end end |