Skip to content

Resolve "Improve slow tests in ./spec/requests/api/projects_spec.rb"

What does this MR do?

Uses let_it_be to create resources.

Before:

  • overall time to run the spec: 3 minutes 16.2 seconds
  • queries count: 68744

After:

  • overall time to run the spec: 2 minutes 5.6 seconds
  • queries count: 28430

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Closes #248561 (closed)

Edited by Jan Provaznik

Merge request reports