File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ async def test_uvloop_secure_https_proxy(
255
255
uvloop_loop : asyncio .AbstractEventLoop ,
256
256
) -> None :
257
257
"""Ensure HTTPS sites are accessible through a secure proxy without warning when using uvloop."""
258
- conn = aiohttp .TCPConnector ()
258
+ conn = aiohttp .TCPConnector (force_close = True )
259
259
sess = aiohttp .ClientSession (connector = conn )
260
260
try :
261
261
url = URL ("https://example.com" )
@@ -264,6 +264,8 @@ async def test_uvloop_secure_https_proxy(
264
264
url , proxy = secure_proxy_url , ssl = client_ssl_ctx
265
265
) as response :
266
266
assert response .status == 200
267
+ # Ensure response body is read to completion
268
+ await response .read ()
267
269
finally :
268
270
await sess .close ()
269
271
await conn .close ()
You can’t perform that action at this time.
0 commit comments