diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-03-06 20:23:58 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-03-06 20:23:58 +0300 |
commit | 56ff02f2ef56465b14c9670b930d154911cc7470 (patch) | |
tree | 26357ff53433c147a37cdd53f19a905ec3f00a93 /test/http/adapter_helper/hackney_test.exs | |
parent | 931111fd5518cb79449cf79ffe29cb774c55d5ff (diff) | |
download | pleroma-56ff02f2ef56465b14c9670b930d154911cc7470.tar.gz pleroma-56ff02f2ef56465b14c9670b930d154911cc7470.zip |
removing GunMock to use Mox
Diffstat (limited to 'test/http/adapter_helper/hackney_test.exs')
-rw-r--r-- | test/http/adapter_helper/hackney_test.exs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/http/adapter_helper/hackney_test.exs b/test/http/adapter_helper/hackney_test.exs index 3306616ef..5fda075f6 100644 --- a/test/http/adapter_helper/hackney_test.exs +++ b/test/http/adapter_helper/hackney_test.exs @@ -3,7 +3,7 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.HTTP.AdapterHelper.HackneyTest do - use ExUnit.Case + use ExUnit.Case, async: true use Pleroma.Tests.Helpers alias Pleroma.Config @@ -20,11 +20,7 @@ defmodule Pleroma.HTTP.AdapterHelper.HackneyTest do end test "add proxy and opts from config", %{uri: uri} do - proxy = Config.get([:http, :proxy_url]) - Config.put([:http, :proxy_url], "localhost:8123") - on_exit(fn -> Config.put([:http, :proxy_url], proxy) end) - - opts = Hackney.options(uri) + opts = Hackney.options([proxy: "localhost:8123"], uri) assert opts[:a] == 1 assert opts[:b] == 2 |