Skip to content

Fix flaky spec: ignore order

Rutger Wessels requested to merge 450632-fix-flaky-test into master

What does this MR do and why?

In #450632 (closed), this spec was reported as a flaky test.

The specs are using eq to compare two arrays. But the underlying logic does not enforce an order. So this test will fail in case the records returned by PostgreSQL are in a different order.

Fixed by using contains_exactly which ignores the order of the array elements

Related to #450632 (closed)

MR acceptance checklist

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

How to set up and validate locally

The specs should pass locally

Edited by Rutger Wessels

Merge request reports