X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=test%2Fmix%2Ftasks%2Fpleroma%2Finstance_test.exs;h=5a5a680533a9ad751abb3b675458e79b3bfd4921;hb=44a86951a339fdb0146a237ca5178c83823629c7;hp=7eaef75bfcabcf7852dc1864e18e16d504362c5e;hpb=9ba60f70d2076017b610708691f9b88a025c6d97;p=akkoma
diff --git a/test/mix/tasks/pleroma/instance_test.exs b/test/mix/tasks/pleroma/instance_test.exs
index 7eaef75bf..5a5a68053 100644
--- a/test/mix/tasks/pleroma/instance_test.exs
+++ b/test/mix/tasks/pleroma/instance_test.exs
@@ -1,9 +1,10 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2020 Pleroma Authors
+# Copyright © 2017-2021 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Mix.Tasks.Pleroma.InstanceTest do
- use Pleroma.DataCase, async: true
+ # Modifies the Application Environment, has to stay synchronous.
+ use Pleroma.DataCase
setup do
File.mkdir_p!(tmp_path())
@@ -17,6 +18,9 @@ defmodule Mix.Tasks.Pleroma.InstanceTest do
end
end)
+ # Is being modified by the mix task.
+ clear_config([:instance, :static_dir])
+
:ok
end