StealEmojiPolicyTest: Clean up.
authorlain <lain@soykaf.club>
Mon, 25 May 2020 12:00:18 +0000 (14:00 +0200)
committerlain <lain@soykaf.club>
Mon, 25 May 2020 12:00:18 +0000 (14:00 +0200)
test/web/activity_pub/mrf/steal_emoji_policy_test.exs

index 0e7e57c77eb1baf9039a633274ae8200c348a74d..3f8222736ec591dbcc449aedcedc46280b27b1b1 100644 (file)
@@ -19,6 +19,12 @@ defmodule Pleroma.Web.ActivityPub.MRF.StealEmojiPolicyTest do
     File.mkdir!(emoji_path)
 
     Pleroma.Emoji.reload()
+
+    on_exit(fn ->
+      File.rm_rf!(emoji_path)
+    end)
+
+    :ok
   end
 
   test "does nothing by default" do