projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
purge chat and shout endpoints
[akkoma]
/
test
/
pleroma
/
config
/
transfer_task_test.exs
diff --git
a/test/pleroma/config/transfer_task_test.exs
b/test/pleroma/config/transfer_task_test.exs
index 9e3f11f1a8741e4e09fc919c0f54d8dabbed0bf6..c56f20ec55b6b66fbf01c858551073e99bc7146b 100644
(file)
--- a/
test/pleroma/config/transfer_task_test.exs
+++ b/
test/pleroma/config/transfer_task_test.exs
@@
-95,8
+95,8
@@
defmodule Pleroma.Config.TransferTaskTest do
@tag :erratic
test "on reboot time key" do
@tag :erratic
test "on reboot time key" do
- clear_config(
:shout
)
- insert(:config, key:
:shout
, value: [enabled: false])
+ clear_config(
[:pleroma, :rate_limit]
)
+ insert(:config, key:
{:pleroma, :rate_limit}
, value: [enabled: false])
assert capture_log(fn -> TransferTask.start_link([]) end) =~ "pleroma restarted"
end
assert capture_log(fn -> TransferTask.start_link([]) end) =~ "pleroma restarted"
end
@@
-109,10
+109,10
@@
defmodule Pleroma.Config.TransferTaskTest do
@tag :erratic
test "don't restart pleroma on reboot time key and subkey if there is false flag" do
@tag :erratic
test "don't restart pleroma on reboot time key and subkey if there is false flag" do
- clear_config(
:shout
)
+ clear_config(
[:pleroma, :rate_limit]
)
clear_config(Pleroma.Captcha)
clear_config(Pleroma.Captcha)
- insert(:config, key:
:shout
, value: [enabled: false])
+ insert(:config, key:
{:pleroma, :rate_limit}
, value: [enabled: false])
insert(:config, key: Pleroma.Captcha, value: [seconds_valid: 60])
refute String.contains?(
insert(:config, key: Pleroma.Captcha, value: [seconds_valid: 60])
refute String.contains?(