diff options
author | lain <lain@soykaf.club> | 2020-12-21 12:59:11 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-12-21 12:59:11 +0100 |
commit | b17c36c45a68b37cc6947e527d06584dca657ee6 (patch) | |
tree | 946ba3ff8f834d16416cde1006e408ab8a6310d6 /test/mix | |
parent | 2f8ec8a9ccf7aeec198642b23598b3d7fb4aa10d (diff) | |
download | pleroma-b17c36c45a68b37cc6947e527d06584dca657ee6.tar.gz |
Tests: More test fixes.
Diffstat (limited to 'test/mix')
-rw-r--r-- | test/mix/tasks/pleroma/ecto/migrate_test.exs | 2 | ||||
-rw-r--r-- | test/mix/tasks/pleroma/instance_test.exs | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/test/mix/tasks/pleroma/ecto/migrate_test.exs b/test/mix/tasks/pleroma/ecto/migrate_test.exs index 43df176a1..548357508 100644 --- a/test/mix/tasks/pleroma/ecto/migrate_test.exs +++ b/test/mix/tasks/pleroma/ecto/migrate_test.exs @@ -3,7 +3,7 @@ # SPDX-License-Identifier: AGPL-3.0-onl defmodule Mix.Tasks.Pleroma.Ecto.MigrateTest do - use Pleroma.DataCase, async: true + use Pleroma.DataCase import ExUnit.CaptureLog require Logger diff --git a/test/mix/tasks/pleroma/instance_test.exs b/test/mix/tasks/pleroma/instance_test.exs index 7eaef75bf..1d2dde108 100644 --- a/test/mix/tasks/pleroma/instance_test.exs +++ b/test/mix/tasks/pleroma/instance_test.exs @@ -3,7 +3,8 @@ # 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 |