Fix flaky release_created_audit_event_service_spec
What does this MR do and why?
-
ReleaseCreatedAuditEventService
usesrelease.milestone_titles
to log the audit event which usesorder_by_dates_and_title
scope defined in theMilestone
class. - Originally the test used
Milestone.first
andMilestone.second
for assertion in the tests, however, it could be flaky sometimes because of the order by title clause. - This MR fixes the flakiness in the test.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #383040 (closed)