diff options
author | Alex S <alex.strizhakov@gmail.com> | 2019-08-16 16:45:50 +0300 |
---|---|---|
committer | Alex S <alex.strizhakov@gmail.com> | 2019-08-20 12:41:45 +0300 |
commit | fb0d06432892bd178baeaadc5b4bdc5e6e21b89e (patch) | |
tree | 1816004fd0ba482d1d99911e346a8b3dc5130538 /test | |
parent | ac0d158c24549bd22b6308c86a20a99ee338c7f7 (diff) | |
download | pleroma-fb0d06432892bd178baeaadc5b4bdc5e6e21b89e.tar.gz |
more fixes
Diffstat (limited to 'test')
-rw-r--r-- | test/gun/connections_test.exs | 4 | ||||
-rw-r--r-- | test/reverse_proxy/reverse_proxy_test.exs | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/gun/connections_test.exs b/test/gun/connections_test.exs index aad70a644..a63c8eaf9 100644 --- a/test/gun/connections_test.exs +++ b/test/gun/connections_test.exs @@ -180,7 +180,7 @@ defmodule Gun.ConnectionsTest do test "opens connection and reuse it on next request", %{name: name} do api = Pleroma.Config.get([API]) - Pleroma.Config.put([API], :gun) + Pleroma.Config.put([API], API.Gun) on_exit(fn -> Pleroma.Config.put([API], api) end) conn = Connections.get_conn("http://httpbin.org", [], name) @@ -204,7 +204,7 @@ defmodule Gun.ConnectionsTest do test "opens ssl connection and reuse it on next request", %{name: name} do api = Pleroma.Config.get([API]) - Pleroma.Config.put([API], :gun) + Pleroma.Config.put([API], API.Gun) on_exit(fn -> Pleroma.Config.put([API], api) end) conn = Connections.get_conn("https://httpbin.org", [], name) diff --git a/test/reverse_proxy/reverse_proxy_test.exs b/test/reverse_proxy/reverse_proxy_test.exs index cd65163d1..476cff643 100644 --- a/test/reverse_proxy/reverse_proxy_test.exs +++ b/test/reverse_proxy/reverse_proxy_test.exs @@ -355,7 +355,7 @@ defmodule Pleroma.ReverseProxyTest do Application.put_env(:tesla, :adapter, Tesla.Adapter.Gun) api = Pleroma.Config.get([Pleroma.Gun.API]) - Pleroma.Config.put([Pleroma.Gun.API], :gun) + Pleroma.Config.put([Pleroma.Gun.API], Pleroma.Gun.API.Gun) {:ok, _} = Pleroma.Gun.Connections.start_link(Pleroma.Gun.Connections) conn = ReverseProxy.call(conn, "http://httpbin.org/stream-bytes/10") @@ -378,7 +378,7 @@ defmodule Pleroma.ReverseProxyTest do Application.put_env(:tesla, :adapter, Tesla.Adapter.Gun) api = Pleroma.Config.get([Pleroma.Gun.API]) - Pleroma.Config.put([Pleroma.Gun.API], :gun) + Pleroma.Config.put([Pleroma.Gun.API], Pleroma.Gun.API.Gun) {:ok, _} = Pleroma.Gun.Connections.start_link(Pleroma.Gun.Connections) conn = ReverseProxy.call(conn, "https://httpbin.org/stream-bytes/10") @@ -401,7 +401,7 @@ defmodule Pleroma.ReverseProxyTest do Application.put_env(:tesla, :adapter, Tesla.Adapter.Gun) api = Pleroma.Config.get([Pleroma.Gun.API]) - Pleroma.Config.put([Pleroma.Gun.API], :gun) + Pleroma.Config.put([Pleroma.Gun.API], Pleroma.Gun.API.Gun) {:ok, _} = Pleroma.Gun.Connections.start_link(Pleroma.Gun.Connections) conn = ReverseProxy.call(conn, "https://httpbin.org/redirect/5") |