summaryrefslogtreecommitdiff
path: root/spec/support/shared_contexts/unique_ip_check_shared_context.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/shared_contexts/unique_ip_check_shared_context.rb')
-rw-r--r--spec/support/shared_contexts/unique_ip_check_shared_context.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/shared_contexts/unique_ip_check_shared_context.rb b/spec/support/shared_contexts/unique_ip_check_shared_context.rb
index f6bedb6cada..8d199df1c10 100644
--- a/spec/support/shared_contexts/unique_ip_check_shared_context.rb
+++ b/spec/support/shared_contexts/unique_ip_check_shared_context.rb
@@ -5,9 +5,9 @@ RSpec.shared_context 'unique ips sign in limit' do
let(:request_context) { Gitlab::RequestContext.instance }
before do
- Gitlab::Redis::Cache.with(&:flushall)
- Gitlab::Redis::Queues.with(&:flushall)
- Gitlab::Redis::SharedState.with(&:flushall)
+ redis_cache_cleanup!
+ redis_queues_cleanup!
+ redis_shared_state_cleanup!
end
before do