Skip to content

Commit f372865

Browse files
committed
added a sleep to cool down the situation: the tcp_count needs some more time
1 parent c4ce790 commit f372865

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/mongo/connection_test.exs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ defmodule Mongo.ConnectionTest do
194194

195195
test "auth connection leak" do
196196
assert capture_log(fn ->
197+
198+
:timer.sleep(1000)
199+
197200
assert tcp_count() == 6
198201
Enum.each(1..10, fn _ ->
199202
connect_auth_invalid()

0 commit comments

Comments
 (0)