Improve slow tests in ./ee/spec/services/search/group_service_spec.rb

context

The total running time of ./ee/spec/services/search/group_service_spec.rb is 1533.97 seconds (25.56min) and it executes 103124 queries.

It is likely this can be improved.

Please review this suite or example for opportunities to fix slow tests.

Description

This issue was generated from the rspec profiling project which profiles rspec tests in pipelines run against the default branch on gitlab-org/gitlab.

How to improve this test?

Please follow our testing best practices to speed up tests at https://docs.gitlab.com/ee/development/testing_guide/best_practices.html#test-speed.

Assignee Loading
Time tracking Loading