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:
Sam Saffron 2019-11-18 16:05:58 +11:00
parent b4bfc27b19
commit 7d389df5e7

View File

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