diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-04-21 14:28:37 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-05-06 13:25:47 +0300 |
commit | a4ee648c4ad92f667dedba8ebcad6eb21665a73b (patch) | |
tree | ab89b781d8b430ff59ecf7dab8c3780e318af48c /test | |
parent | 779b991e03df673d006071f5867e56a41a19b2bf (diff) | |
download | pleroma-a4ee648c4ad92f667dedba8ebcad6eb21665a73b.tar.gz |
bugfix for ned opened gun conn
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) |