mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
small improv in max requests tests to make it tolerant to multi-homed networks
This commit is contained in:
parent
8205b351aa
commit
dd8608ec3b
@ -132,7 +132,9 @@ class HTTPSTest < Minitest::Test
|
||||
verify_body_length(response3)
|
||||
connection_count = http.connection_count
|
||||
assert connection_count == 2, "expected to have 2 connections, instead have #{connection_count}"
|
||||
assert http.connections.size == 1, "expected connection to have been reused on exhaustion"
|
||||
http.connections.tally(&:family).each do |family, count|
|
||||
assert count == 1, "expected connection to have been reused on exhaustion"
|
||||
end
|
||||
|
||||
# ssl session ought to be reused
|
||||
conn = http.connections.first
|
||||
|
Loading…
x
Reference in New Issue
Block a user