Commit 11acc495 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'sarnold-fix-flakey-spec' into 'master'

Remove unneeded flakey specs

See merge request gitlab-org/gitlab!78350
parents e3e88959 802760f5
......@@ -59,26 +59,6 @@ RSpec.describe IncidentManagement::IssuableEscalationStatuses::CreateService do
it_behaves_like 'creates an escalation status for the incident with no policy set'
end
context 'when alert pending escalations exist' do
let!(:first_pending_escalation) { create(:incident_management_pending_alert_escalation, alert: alert) }
let!(:second_pending_escalation) { create(:incident_management_pending_alert_escalation, alert: alert) }
it 'creates an escalation status with the pending escalation start time' do
execute
status = incident.incident_management_issuable_escalation_status
expect(status.escalations_started_at).to be_like_time(second_pending_escalation.created_at)
end
end
context 'when feature flag is disabled' do
before do
stub_feature_flags(incident_escalations: false)
end
it_behaves_like 'creates an escalation status for the incident with no policy set'
end
end
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