Revert "DEV: Move rate limiter disable to after :each for tests (#13986)" (#13987)

This reverts commit 52035dc665.
This commit is contained in:
Martin Brennan 2021-08-10 14:12:36 +10:00 committed by GitHub
parent 52035dc665
commit 93af139a76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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