projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bec0d2
)
StealEmojiPolicyTest: Fix flaky test.
author
lain
<lain@soykaf.club>
Mon, 25 May 2020 11:48:47 +0000
(13:48 +0200)
committer
lain
<lain@soykaf.club>
Mon, 25 May 2020 11:48:47 +0000
(13:48 +0200)
test/web/activity_pub/mrf/steal_emoji_policy_test.exs
patch
|
blob
|
history
diff --git
a/test/web/activity_pub/mrf/steal_emoji_policy_test.exs
b/test/web/activity_pub/mrf/steal_emoji_policy_test.exs
index 8882c8c1315d1e10bff972207f40cac954960b6c..0e7e57c77eb1baf9039a633274ae8200c348a74d 100644
(file)
--- a/
test/web/activity_pub/mrf/steal_emoji_policy_test.exs
+++ b/
test/web/activity_pub/mrf/steal_emoji_policy_test.exs
@@
-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)