diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-02-13 21:55:47 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-02-13 21:55:47 +0300 |
commit | 4f8c3462a8821ffcf83f8b65edf48e55eff7080c (patch) | |
tree | a532e6761adde4e23f2b7e980f76e4c6f5b08148 /test/plugs/remote_ip_test.exs | |
parent | 9906c6fb6fb0e2ebb36fa91fae94828bcc02ef27 (diff) | |
download | pleroma-4f8c3462a8821ffcf83f8b65edf48e55eff7080c.tar.gz |
Tweaks to `clear_config` calls in tests in order to prevent side effects on config during test suite execution.
Diffstat (limited to 'test/plugs/remote_ip_test.exs')
-rw-r--r-- | test/plugs/remote_ip_test.exs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/plugs/remote_ip_test.exs b/test/plugs/remote_ip_test.exs index d120c588b..93e276454 100644 --- a/test/plugs/remote_ip_test.exs +++ b/test/plugs/remote_ip_test.exs @@ -8,6 +8,10 @@ defmodule Pleroma.Plugs.RemoteIpTest do alias Pleroma.Plugs.RemoteIp + import Pleroma.Tests.Helpers, only: [clear_config: 1, clear_config: 2] + + clear_config(RemoteIp) + test "disabled" do Pleroma.Config.put(RemoteIp, enabled: false) |