mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 08:15:35 +08:00
DEV: correct spec to allow for new default
b4bfc27b changes the default so the spec should be changed as well.
This commit is contained in:
parent
b4bfc27b19
commit
7d389df5e7
@ -129,7 +129,8 @@ describe Middleware::RequestTracker do
|
||||
Middleware::RequestTracker.new(app)
|
||||
end
|
||||
|
||||
it "does nothing by default" do
|
||||
it "does nothing if configured to do nothing" do
|
||||
global_setting :max_reqs_per_ip_mode, "none"
|
||||
global_setting :max_reqs_per_ip_per_10_seconds, 1
|
||||
|
||||
status, _ = middleware.call(env)
|
||||
|
Loading…
x
Reference in New Issue
Block a user