mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
No need to disable rate limiter after running tests (#13093)
We disable rate limiter before running every test here 90ab3b1c75/spec/rails_helper.rb (L109-L109)
This commit is contained in:
committed by
GitHub
parent
9e4288a4ab
commit
075cd07a07
@@ -692,8 +692,6 @@ RSpec.describe ApplicationController do
|
||||
RateLimiter.enable
|
||||
end
|
||||
|
||||
after { RateLimiter.disable }
|
||||
|
||||
it "serves a LimitExceeded error in the preferred locale" do
|
||||
SiteSetting.max_likes_per_day = 1
|
||||
post1 = Fabricate(:post)
|
||||
|
||||
Reference in New Issue
Block a user