aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gun/connections_test.exs4
-rw-r--r--test/reverse_proxy/reverse_proxy_test.exs6
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")