Skip to content

Fix order-dependent Sidekiq config spec failures

What does this MR do and why?

Previously the tests would fail if you ran:

bundle exec rspec spec/initializers/sidekiq_spec.rb spec/lib/gitlab/sidekiq_config_spec.rb

SidekiqConfig.load_cron_jobs! is memoized the first time it's run, so we need to clear this memoization in order to ensure the state doesn't leak from one test to another.

Relates to gitlab-org/quality/engineering-productivity/master-broken-incidents#4794 (closed)

Edited by Stan Hu

Merge request reports

Loading