From: rinpatch Date: Wed, 18 Sep 2019 20:34:13 +0000 (+0300) Subject: Cleanup uploads after the tests are finished X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a12aeb09c42f1c120b78d517cfbad2fe29c88006;p=akkoma Cleanup uploads after the tests are finished --- diff --git a/test/test_helper.exs b/test/test_helper.exs index a927b2c3d..6a389365f 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -7,3 +7,8 @@ ExUnit.start(exclude: os_exclude) Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, :manual) Mox.defmock(Pleroma.ReverseProxy.ClientMock, for: Pleroma.ReverseProxy.Client) {:ok, _} = Application.ensure_all_started(:ex_machina) + +ExUnit.after_suite(fn _results -> + uploads = Pleroma.Config.get([Pleroma.Uploaders.Local, :uploads], "test/uploads") + File.rm_rf!(uploads) +end)