aboutsummaryrefslogtreecommitdiff
path: root/test/repo_test.exs
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2020-03-20 18:33:00 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2020-03-20 18:33:00 +0300
commit1c05f539aaea32fe993e5299e656aa44c322e8de (patch)
treedb7724289ac074e0b70b7405d9080e50b8a8175d /test/repo_test.exs
parent0e27c274f4f68f3385753a2482d881bae7c35a06 (diff)
downloadpleroma-1c05f539aaea32fe993e5299e656aa44c322e8de.tar.gz
Improved in-test `clear_config/n` applicability (setup / setup_all / in-test usage).
Diffstat (limited to 'test/repo_test.exs')
-rw-r--r--test/repo_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/repo_test.exs b/test/repo_test.exs
index 75e85f974..daffc6542 100644
--- a/test/repo_test.exs
+++ b/test/repo_test.exs
@@ -67,7 +67,7 @@ defmodule Pleroma.RepoTest do
:ok
end
- clear_config([:i_am_aware_this_may_cause_data_loss, :disable_migration_check])
+ setup do: clear_config([:i_am_aware_this_may_cause_data_loss, :disable_migration_check])
test "raises if it detects unapplied migrations" do
assert_raise Pleroma.Repo.UnappliedMigrationsError, fn ->