diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/pool/connections_test.exs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/pool/connections_test.exs b/test/pool/connections_test.exs index ad56e582f..a7afb2190 100644 --- a/test/pool/connections_test.exs +++ b/test/pool/connections_test.exs @@ -97,6 +97,16 @@ defmodule Pleroma.Pool.ConnectionsTest do refute Connections.checkin(url, name) :ok = Conn.open(url, name) + %Connections{ + conns: %{ + ^key => %Conn{ + gun_state: :up, + used_by: [], + conn_state: :idle + } + } + } = Connections.get_state(name) + conn = Connections.checkin(url, name) assert is_pid(conn) assert Process.alive?(conn) |