fixup! reenabling concurrent request tests

This commit is contained in:
HoneyryderChuck 2020-03-21 17:53:07 +00:00
parent f70e809650
commit b6eb2b488b

View File

@ -24,6 +24,17 @@ OpenSSL::SSL::SSLContext::DEFAULT_CERT_STORE.add_file(ENV["SSL_CERT_FILE"]) if R
module SessionWithPool
ConnectionPool = Class.new(HTTPX::Pool) do
attr_reader :connections
attr_reader :connection_count
def initialize(*)
super
@connection_count = 0
end
def init_connection(connection, _)
super
connection.on(:open) { @connection_count += 1 }
end
end
module InstanceMethods