mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-19 11:45:01 +00:00
Fix rate limiter tests
This commit is contained in:
parent
2437f51284
commit
fc6e661672
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ defmodule Pleroma.Plugs.RateLimiterTest do
|
|||
end
|
||||
|
||||
test "it restricts by opts" do
|
||||
scale = 100
|
||||
scale = 1000
|
||||
limit = 5
|
||||
|
||||
Pleroma.Config.put([:rate_limit, @limiter_name], {scale, limit})
|
||||
|
@ -64,7 +64,7 @@ defmodule Pleroma.Plugs.RateLimiterTest do
|
|||
test "optional limits for authenticated users" do
|
||||
Ecto.Adapters.SQL.Sandbox.checkout(Pleroma.Repo)
|
||||
|
||||
scale = 100
|
||||
scale = 1000
|
||||
limit = 5
|
||||
Pleroma.Config.put([:rate_limit, @limiter_name], [{1, 10}, {scale, limit}])
|
||||
|
||||
|
|
Loading…
Reference in a new issue