forked from AkkomaGang/akkoma
Merge branch 'fix-rate-limit-test' into 'develop'
Fix rate limiter tests See merge request pleroma/pleroma!1316
This commit is contained in:
commit
4d69d066c4
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ test "ip/1" do
|
||||||
end
|
end
|
||||||
|
|
||||||
test "it restricts by opts" do
|
test "it restricts by opts" do
|
||||||
scale = 100
|
scale = 1000
|
||||||
limit = 5
|
limit = 5
|
||||||
|
|
||||||
Pleroma.Config.put([:rate_limit, @limiter_name], {scale, limit})
|
Pleroma.Config.put([:rate_limit, @limiter_name], {scale, limit})
|
||||||
|
@ -64,7 +64,7 @@ test "it restricts by opts" do
|
||||||
test "optional limits for authenticated users" do
|
test "optional limits for authenticated users" do
|
||||||
Ecto.Adapters.SQL.Sandbox.checkout(Pleroma.Repo)
|
Ecto.Adapters.SQL.Sandbox.checkout(Pleroma.Repo)
|
||||||
|
|
||||||
scale = 100
|
scale = 1000
|
||||||
limit = 5
|
limit = 5
|
||||||
Pleroma.Config.put([:rate_limit, @limiter_name], [{1, 10}, {scale, limit}])
|
Pleroma.Config.put([:rate_limit, @limiter_name], [{1, 10}, {scale, limit}])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue