Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Aug 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions spec/rails_helper.rb
Expand Up @@ -106,6 +106,7 @@ def self.test_setup(x = nil)
#
# Discourse.redis = DiscourseMockRedis.new

RateLimiter.disable
PostActionNotifier.disable
SearchIndexer.disable
UserActionManager.disable
Expand Down Expand Up @@ -259,8 +260,6 @@ class << x.exception

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
Expand Down