summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index b862fc4bbd9..d379fd494fa 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -193,8 +193,10 @@ RSpec.configure do |config|
# expect(Gitlab::Git::KeepAround).to receive(:execute).and_call_original
allow(Gitlab::Git::KeepAround).to receive(:execute)
- # Clear thread cache and Sidekiq queues
- Gitlab::ThreadMemoryCache.cache_backend.clear
+ [Gitlab::ThreadMemoryCache, Gitlab::ProcessMemoryCache].each do |cache|
+ cache.cache_backend.clear
+ end
+
Sidekiq::Worker.clear_all
# Temporary patch to force admin mode to be active by default in tests when