Skip to content

Commit 7413fc0

Browse files
committed
cleanup
1 parent d7de24d commit 7413fc0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/test_proxy_functional.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -982,15 +982,9 @@ async def test_https_proxy_connect_tunnel_session_close_no_hang(
982982
"""Test that CONNECT tunnel connections are not pooled."""
983983
# Regression test for issue #11273.
984984

985-
# Create a simple proxy server that responds to CONNECT
986-
async def proxy_handler(request: web.Request) -> web.Response:
987-
if request.method == "CONNECT":
988-
# Return 200 OK for CONNECT
989-
return web.Response(status=200)
990-
return web.Response(text="proxy response")
991-
985+
# Create a minimal proxy server
986+
# The CONNECT method is handled at the protocol level, not by the handler
992987
proxy_app = web.Application()
993-
proxy_app.router.add_route("*", "/{path:.*}", proxy_handler)
994988
proxy_server = await aiohttp_server(proxy_app)
995989
proxy_url = f"http://{proxy_server.host}:{proxy_server.port}"
996990

0 commit comments

Comments
 (0)