Change next_aborted_repository `take` to `limit(2)[0]`
What does this MR do and why?
The take
method takes an item depending on the database setup, this causes a certain spec to fail in PG11. This solution is chosen based on this MR, which also used take
previously, so that both uses are in line with each other.
How to set up and validate locally
Run the specs locally on both PG11 and PG12, both should pass.
pipeline:run-all-rspec
label is added to this MR to ensure we run PG11 specs
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.
Fixes #362932 (closed)
Edited by Roy Zwambag