Skip to content

Fix a flakey spec for users ids

Mohamed Hamda requested to merge fix-eq-flakey-spec into master

What does this MR do and why?

Sometimes getting a local flakey spec that appears randomly locally based on the spec runtime, which did not show in the CI

It is not always showing locally, but we better fix it.

Screenshot_2024-03-15_at_09.36.18

The failure indicates that the order of the elements in the arrays is different, even though the elements themselves are the same.

We don't care about the order in this case.

To fix this, we better use the matcher with match_array, which will check if both arrays contain the same elements regardless of their order.

This matcher will pass the test if both arrays contain the same elements, regardless of their order.

Edited by Mohamed Hamda

Merge request reports