File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -793,6 +793,8 @@ async def blocking_middleware(
793
793
# Check that no connections were leaked
794
794
assert len (connector ._conns ) == 0
795
795
796
+ await connector .close ()
797
+
796
798
797
799
async def test_client_middleware_blocks_connection_without_dns_lookup (
798
800
aiohttp_server : AiohttpServer ,
Original file line number Diff line number Diff line change @@ -463,6 +463,7 @@ async def test_proxy_http_acquired_cleanup(
463
463
assert 0 == len (conn ._acquired )
464
464
465
465
await sess .close ()
466
+ await conn .close ()
466
467
467
468
468
469
@pytest .mark .skip ("we need to reconsider how we test this" )
@@ -487,6 +488,7 @@ async def request() -> None:
487
488
assert 0 == len (conn ._acquired )
488
489
489
490
await sess .close ()
491
+ await conn .close ()
490
492
491
493
492
494
@pytest .mark .skip ("we need to reconsider how we test this" )
@@ -521,6 +523,7 @@ async def request(pid: int) -> ClientResponse:
521
523
assert {resp .status for resp in responses } == {200 }
522
524
523
525
await sess .close ()
526
+ await conn .close ()
524
527
525
528
526
529
@pytest .mark .xfail
Original file line number Diff line number Diff line change @@ -625,6 +625,7 @@ async def test_static_file_ssl(
625
625
626
626
resp .release ()
627
627
await client .close ()
628
+ await conn .close ()
628
629
629
630
630
631
async def test_static_file_directory_traversal_attack (
You can’t perform that action at this time.
0 commit comments