From 93af139a76866619fbd903799566365ea235f11b Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Tue, 10 Aug 2021 14:12:36 +1000 Subject: [PATCH] Revert "DEV: Move rate limiter disable to after :each for tests (#13986)" (#13987) This reverts commit 52035dc665f84174caedf275f6b6282e0f80d220. --- spec/rails_helper.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 59a0cb954af..ab44d904ea9 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -106,6 +106,7 @@ module TestSetup # # Discourse.redis = DiscourseMockRedis.new + RateLimiter.disable PostActionNotifier.disable SearchIndexer.disable UserActionManager.disable @@ -259,8 +260,6 @@ RSpec.configure do |config| unfreeze_time ActionMailer::Base.deliveries.clear - RateLimiter.disable - RateLimiter.clear_all! if ActiveRecord::Base.connection_pool.stat[:busy] > 1 raise ActiveRecord::Base.connection_pool.stat.inspect