Skip to content

Commit 6b0f6a4

Browse files
committed
coverage
1 parent 01f1788 commit 6b0f6a4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/_async/test_socks_proxy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ async def test_socks5_request():
2727
async with httpcore.AsyncConnectionPool(
2828
proxy=httpcore.Proxy("socks5://localhost:8080/"),
2929
network_backend=network_backend,
30+
# We also enable h2, but will negotiated http1.1
31+
http2=True,
3032
) as proxy:
3133
# Sending an intial request, which once complete will return to the pool, IDLE.
3234
async with proxy.stream("GET", "https://example.com/") as response:

tests/_sync/test_socks_proxy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ def test_socks5_request():
2727
with httpcore.ConnectionPool(
2828
proxy=httpcore.Proxy("socks5://localhost:8080/"),
2929
network_backend=network_backend,
30+
# We also enable h2, but will negotiated http1.1
31+
http2=True,
3032
) as proxy:
3133
# Sending an intial request, which once complete will return to the pool, IDLE.
3234
with proxy.stream("GET", "https://example.com/") as response:

0 commit comments

Comments
 (0)