Skip to content

Fix flaky release_created_audit_event_service_spec

What does this MR do and why?

  1. ReleaseCreatedAuditEventService uses release.milestone_titles to log the audit event which uses order_by_dates_and_title scope defined in the Milestone class.
  2. Originally the test used Milestone.first and Milestone.second for assertion in the tests, however, it could be flaky sometimes because of the order by title clause.
  3. 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.

Related to #383040 (closed)

Merge request reports