Speed up push_options_handler_service_spec
What does this MR do?
Use let_it_be to create a project once
Before
- Total events: 51053
- Finished in 6 minutes 35 seconds
After
- Total events: 14127
- Finished in 2 minutes 30 seconds
Related issue: https://gitlab.com/gitlab-org/plan/-/issues/145
According to RSpec stats:
https://gitlab-org.gitlab.io/rspec_profiling_stats/
When | Time | Events |
---|---|---|
Before | 479.77 | 42702 |
After | 154.36 | 11911 |
Queries saved: 36926
Edited by John Hope