mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
mapping origins correctly now
This commit is contained in:
parent
8a570f7d4c
commit
2853cde6db
@ -39,9 +39,9 @@ class HTTPSTest < Minitest::Test
|
||||
# introspection time
|
||||
pool = http.__send__(:pool)
|
||||
connections = pool.instance_variable_get(:@connections)
|
||||
origins = conn.instance_variable_get(:@origins)
|
||||
assert connections.any? { |_conn| origins == [origin, coalesced_origin] },
|
||||
"connections didn't coalesce (expected connection with both origins (got: #{origins}))"
|
||||
origins = connections.map { |conn| conn.instance_variable_get(:@origins) }
|
||||
assert origins.any? { |orgs| orgs == [origin, coalesced_origin] },
|
||||
"connections didn't coalesce (expected connection with both origins (#{origins}))"
|
||||
end
|
||||
end if ENV.key?("HTTPBIN_COALESCING_HOST")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user