projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
6906db5
)
Merge branch 'fix-rate-limit-test' into 'develop'
author
kaniini
<nenolod@gmail.com>
Fri, 21 Jun 2019 22:25:09 +0000
(22:25 +0000)
committer
kaniini
<nenolod@gmail.com>
Fri, 21 Jun 2019 22:25:09 +0000
(22:25 +0000)
Fix rate limiter tests
See merge request pleroma/pleroma!1316
test/plugs/rate_limiter_test.exs
patch
|
blob
|
history
diff --git
a/test/plugs/rate_limiter_test.exs
b/test/plugs/rate_limiter_test.exs
index b3798bf0361cc0dbca4041ed175d033aef6da3bc..b8d6aff89ce87ebc17342f50a8663ed0d3f72070 100644
(file)
--- a/
test/plugs/rate_limiter_test.exs
+++ b/
test/plugs/rate_limiter_test.exs
@@
-20,7
+20,7
@@
defmodule Pleroma.Plugs.RateLimiterTest do
end
test "it restricts by opts" do
- scale = 100
+ scale = 100
0
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 = 100
0
limit = 5
Pleroma.Config.put([:rate_limit, @limiter_name], [{1, 10}, {scale, limit}])