Skip to content

Fix flaky MergeRequests::HandleAssigneesChangeWorker spec

Patrick Bajao requested to merge 327568-fix-flaky-worker-spec into master

What does this MR do?

It is possible that the expected array and the actual array or relation are different in order. That can lead to flakiness.

To fix it, match_array is used to ignore the order of records.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #327568 (closed)

Merge request reports