Skip to content

Fix flaky issue participants specs

Mario Celi requested to merge 444827-fix-flaky-specs into master

What does this MR do and why?

Make sure other issues with a matching IID don't exist in the DB on specs that expect a 404 is using the issue's ID instead of IID. The problem was that sometimes the ID would match with another issue's IID and return a 200.

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

Failure is reproducible by running

bundle exec rspec spec/requests/api/issues/get_project_issues_spec.rb --seed 3228

Related to #444827

Merge request reports