aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gun/connections_test.exs21
-rw-r--r--test/reverse_proxy/client/hackney_test.exs4
-rw-r--r--test/reverse_proxy/client/tesla_test.exs4
-rw-r--r--test/support/reverse_proxy_client_case.ex4
4 files changed, 12 insertions, 21 deletions
diff --git a/test/gun/connections_test.exs b/test/gun/connections_test.exs
index 8308b5f9f..4da42d854 100644
--- a/test/gun/connections_test.exs
+++ b/test/gun/connections_test.exs
@@ -31,27 +31,6 @@ defmodule Gun.ConnectionsTest do
end
end
- test "try_to_get_gun_conn/1 returns conn", %{name: name, pid: pid} do
- conn = Connections.try_to_get_gun_conn("http://some-domain.com", [genserver_pid: pid], name)
- assert is_pid(conn)
- assert Process.alive?(conn)
-
- reused_conn = Connections.get_conn("http://some-domain.com", [genserver_pid: pid], name)
-
- assert conn == reused_conn
-
- %Connections{
- conns: %{
- "http:some-domain.com:80" => %Conn{
- conn: ^conn,
- state: :up,
- waiting_pids: [],
- used: 2
- }
- }
- } = Connections.get_state(name)
- end
-
test "opens connection and reuse it on next request", %{name: name, pid: pid} do
conn = Connections.get_conn("http://some-domain.com", [genserver_pid: pid], name)
diff --git a/test/reverse_proxy/client/hackney_test.exs b/test/reverse_proxy/client/hackney_test.exs
index 577e0b0b2..cf9de912a 100644
--- a/test/reverse_proxy/client/hackney_test.exs
+++ b/test/reverse_proxy/client/hackney_test.exs
@@ -1,3 +1,7 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.ReverseProxy.Client.HackneyTest do
use Pleroma.ReverseProxyClientCase, client: Pleroma.ReverseProxy.Client.Hackney
diff --git a/test/reverse_proxy/client/tesla_test.exs b/test/reverse_proxy/client/tesla_test.exs
index 029a25d0f..a18d609d2 100644
--- a/test/reverse_proxy/client/tesla_test.exs
+++ b/test/reverse_proxy/client/tesla_test.exs
@@ -1,3 +1,7 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.ReverseProxy.Client.TeslaTest do
use Pleroma.ReverseProxyClientCase, client: Pleroma.ReverseProxy.Client.Tesla
diff --git a/test/support/reverse_proxy_client_case.ex b/test/support/reverse_proxy_client_case.ex
index 40cd59ea2..16bc2803b 100644
--- a/test/support/reverse_proxy_client_case.ex
+++ b/test/support/reverse_proxy_client_case.ex
@@ -1,3 +1,7 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.ReverseProxyClientCase do
defmacro __using__(client: client) do
quote do