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 @@ -218,7 +218,7 @@ async def test_uvloop_secure_https_proxy(
218
218
uvloop_loop : asyncio .AbstractEventLoop ,
219
219
) -> None :
220
220
"""Ensure HTTPS sites are accessible through a secure proxy without warning when using uvloop."""
221
- conn = aiohttp .TCPConnector ()
221
+ conn = aiohttp .TCPConnector (force_close = True )
222
222
sess = aiohttp .ClientSession (connector = conn )
223
223
try :
224
224
url = URL ("https://example.com" )
@@ -227,6 +227,8 @@ async def test_uvloop_secure_https_proxy(
227
227
url , proxy = secure_proxy_url , ssl = client_ssl_ctx
228
228
) as response :
229
229
assert response .status == 200
230
+ # Ensure response body is read to completion
231
+ await response .read ()
230
232
finally :
231
233
await sess .close ()
232
234
await conn .close ()
You can’t perform that action at this time.
0 commit comments