Fix flaky epic deletion specs

What does this MR do and why?

Since we are deleting the objects within the spec, we need to refind the object so the model is properly marked as persisted before deletion.

References

How to set up and validate locally

You can reproduce the failure with:

bin/rspec './ee/spec/services/ee/issuable/destroy_service_spec.rb' --seed 40885

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Heinrich Lee Yu

Merge request reports

Loading