Skip to content

Split packages test data to avoid sorting issue

What does this MR do and why?

Split test data to avoid sorting issue

The order of the packages that have the same value for the column that is used for ORDER BY statement isn't guaranteed, therefore split the test data to avoid flakyness in the tests.

The MR should fix the issues [Test] spec/models/packages/package_spec.rb | P... (#448846 - closed) and [Test] spec/models/packages/package_spec.rb | P... (#448847 - 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

We can check that the tests are passing.

bundle exec rspec spec/models/packages/package_spec.rb:1057

Related to #448846 (closed)

Edited by Dzmitry Meshcharakou

Merge request reports