X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Ftasks%2Finstance_test.exs;h=f6a4ba5085324ff65230288e3e53e72458dd5360;hb=f5bda09de648a6de3151c8614005ebc70447facb;hp=d69275726e280c11e19c8296b3c90c7a741a07d7;hpb=503d966e9f7d4c41a1bfbd215b375443a858564a;p=akkoma
diff --git a/test/tasks/instance_test.exs b/test/tasks/instance_test.exs
index d69275726..f6a4ba508 100644
--- a/test/tasks/instance_test.exs
+++ b/test/tasks/instance_test.exs
@@ -1,9 +1,9 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2019 Pleroma Authors
+# Copyright © 2017-2020 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.InstanceTest do
- use ExUnit.Case, async: true
+ use ExUnit.Case
setup do
File.mkdir_p!(tmp_path())
@@ -15,6 +15,8 @@ defmodule Pleroma.InstanceTest do
if File.exists?(static_dir) do
File.rm_rf(Path.join(static_dir, "robots.txt"))
end
+
+ Pleroma.Config.put([:instance, :static_dir], static_dir)
end)
:ok