Commit 6b3c45b0 authored by Ash McKenzie's avatar Ash McKenzie

Merge branch 'caalberts-fix-broken-master-build-report-result-service' into 'master'

Run test at a fixed time

See merge request gitlab-org/gitlab!50354
parents 9b10bed9 15c1a003
...@@ -6,6 +6,12 @@ RSpec.describe Ci::BuildReportResultService do ...@@ -6,6 +6,12 @@ RSpec.describe Ci::BuildReportResultService do
describe '#execute', :clean_gitlab_redis_shared_state do describe '#execute', :clean_gitlab_redis_shared_state do
subject(:build_report_result) { described_class.new.execute(build) } subject(:build_report_result) { described_class.new.execute(build) }
around do |example|
travel_to(DateTime.parse('2020-07-01')) do
example.run
end
end
context 'when build is finished' do context 'when build is finished' do
let(:build) { create(:ci_build, :success, :test_reports) } let(:build) { create(:ci_build, :success, :test_reports) }
......
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