diff --git a/test/support/mint/http2/test_server.ex b/test/support/mint/http2/test_server.ex index 41834641..d211c111 100644 --- a/test/support/mint/http2/test_server.ex +++ b/test/support/mint/http2/test_server.ex @@ -121,6 +121,7 @@ defmodule Mint.HTTP2.TestServer do Task.async(fn -> # Let's accept a new connection. {:ok, socket} = :ssl.transport_accept(listen_socket) + :ok = :ssl.close(listen_socket) if function_exported?(:ssl, :handshake, 1) do {:ok, _} = apply(:ssl, :handshake, [socket])