Commit b582f61d authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'sy-replace-shift-factory-defaults' into 'master'

Swap to more sensible shift factory defaults

See merge request gitlab-org/gitlab!52539
parents 6ef7d089 ad704347
......@@ -4,7 +4,7 @@ FactoryBot.define do
factory :incident_management_oncall_shift, class: 'IncidentManagement::OncallShift' do
association :participant, :with_developer_access, factory: :incident_management_oncall_participant
rotation { participant.rotation }
starts_at { 5.days.ago }
ends_at { 2.days.from_now }
starts_at { rotation.starts_at }
ends_at { starts_at + rotation.shift_duration }
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