more info in Connections.checkin timout errors
This commit is contained in:
parent
a03c420b84
commit
ad8f26c0a4
5 changed files with 23 additions and 14 deletions
|
|
@ -61,8 +61,8 @@ defmodule Pleroma.HTTPTest do
|
|||
|
||||
describe "connection pools" do
|
||||
@describetag :integration
|
||||
clear_config([Pleroma.Gun.API]) do
|
||||
Pleroma.Config.put([Pleroma.Gun.API], Pleroma.Gun)
|
||||
clear_config(Pleroma.Gun.API) do
|
||||
Pleroma.Config.put(Pleroma.Gun.API, Pleroma.Gun)
|
||||
end
|
||||
|
||||
test "gun" do
|
||||
|
|
|
|||
|
|
@ -15,6 +15,10 @@ defmodule Pleroma.Pool.ConnectionsTest do
|
|||
:ok
|
||||
end
|
||||
|
||||
clear_config([:connections_pool, :retry]) do
|
||||
Pleroma.Config.put([:connections_pool, :retry], 5)
|
||||
end
|
||||
|
||||
setup do
|
||||
name = :test_connections
|
||||
adapter = Application.get_env(:tesla, :adapter)
|
||||
|
|
@ -429,8 +433,8 @@ defmodule Pleroma.Pool.ConnectionsTest do
|
|||
describe "integration test" do
|
||||
@describetag :integration
|
||||
|
||||
clear_config([API]) do
|
||||
Pleroma.Config.put([API], Pleroma.Gun)
|
||||
clear_config(API) do
|
||||
Pleroma.Config.put(API, Pleroma.Gun)
|
||||
end
|
||||
|
||||
test "opens connection and reuse it on next request", %{name: name} do
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ defmodule Pleroma.ReverseProxy.Client.TeslaTest do
|
|||
alias Pleroma.ReverseProxy.Client
|
||||
@moduletag :integration
|
||||
|
||||
clear_config_all([Pleroma.Gun.API]) do
|
||||
Pleroma.Config.put([Pleroma.Gun.API], Pleroma.Gun)
|
||||
clear_config_all(Pleroma.Gun.API) do
|
||||
Pleroma.Config.put(Pleroma.Gun.API, Pleroma.Gun)
|
||||
end
|
||||
|
||||
setup do
|
||||
|
|
|
|||
|
|
@ -345,12 +345,12 @@ defmodule Pleroma.ReverseProxyTest do
|
|||
describe "tesla client using gun integration" do
|
||||
@describetag :integration
|
||||
|
||||
clear_config([Pleroma.ReverseProxy.Client]) do
|
||||
Pleroma.Config.put([Pleroma.ReverseProxy.Client], Pleroma.ReverseProxy.Client.Tesla)
|
||||
clear_config(Pleroma.ReverseProxy.Client) do
|
||||
Pleroma.Config.put(Pleroma.ReverseProxy.Client, Pleroma.ReverseProxy.Client.Tesla)
|
||||
end
|
||||
|
||||
clear_config([Pleroma.Gun.API]) do
|
||||
Pleroma.Config.put([Pleroma.Gun.API], Pleroma.Gun)
|
||||
clear_config(Pleroma.Gun.API) do
|
||||
Pleroma.Config.put(Pleroma.Gun.API, Pleroma.Gun)
|
||||
end
|
||||
|
||||
setup do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue