summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-06-18 08:07:23 +0800
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-06-18 16:10:34 +0800
commitb0e7efb5c2dd47dcd6998def5eaa8bbc46a5bb89 (patch)
tree48618b8865982612138fb8a061b5c49e196d36fa
parent04307096bcc776259d8080bebd688ff6073d07c4 (diff)
downloadgitlab-ce-62760-unquarantine-spec.tar.gz
Fix flaky time related spec62760-unquarantine-spec
Also removes test from quarantine
-rw-r--r--spec/models/ci/pipeline_schedule_spec.rb6
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