Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f58bce0

Browse files
committedOct 23, 2024·
refactor/tests: update get_connected_protocol invocation in HTTP tests
- Add `None` argument to `get_connected_protocol` for HTTP upgrade - This change aligns the function call with its updated signature
1 parent 6aba74a commit f58bce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tests/protocols/test_http.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ async def test_close_connection_with_multiple_requests(http_protocol_cls: HTTPPr
10261026
config_kw = {}
10271027
if http_protocol_cls == HttpToolsProtocol:
10281028
config_kw = {"lenient_flags": ["lenient_data_after_close"]}
1029-
protocol = get_connected_protocol(app, http_protocol_cls, **config_kw)
1029+
protocol = get_connected_protocol(app, http_protocol_cls, None, **config_kw)
10301030
protocol.data_received(REQUEST_AFTER_CONNECTION_CLOSE)
10311031
await protocol.loop.run_one()
10321032
assert b"HTTP/1.1 200 OK" in protocol.transport.buffer

0 commit comments

Comments
 (0)
Please sign in to comment.