StealEmojiPolicyTest: Fix flaky test.
This commit is contained in:
parent
ec470c4c77
commit
2dff376041
@ -14,8 +14,6 @@ defmodule Pleroma.Web.ActivityPub.MRF.StealEmojiPolicyTest do
|
||||
end
|
||||
|
||||
setup do
|
||||
clear_config(:mrf_steal_emoji)
|
||||
|
||||
emoji_path = Path.join(Config.get([:instance, :static_dir]), "emoji/stolen")
|
||||
File.rm_rf!(emoji_path)
|
||||
File.mkdir!(emoji_path)
|
||||
@ -53,8 +51,8 @@ defmodule Pleroma.Web.ActivityPub.MRF.StealEmojiPolicyTest do
|
||||
}
|
||||
}
|
||||
|
||||
Config.put([:mrf_steal_emoji, :hosts], ["example.org"])
|
||||
Config.put([:mrf_steal_emoji, :size_limit], 284_468)
|
||||
clear_config([:mrf_steal_emoji, :hosts], ["example.org"])
|
||||
clear_config([:mrf_steal_emoji, :size_limit], 284_468)
|
||||
|
||||
assert {:ok, message} == StealEmojiPolicy.filter(message)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user