Skip to content

Commit

Permalink
refactor/tests: update get_connected_protocol invocation in HTTP tests
Browse files Browse the repository at this point in the history
- Add `None` argument to `get_connected_protocol` for HTTP upgrade
- This change aligns the function call with its updated signature
  • Loading branch information
vvanglro committed Oct 23, 2024
1 parent 6aba74a commit f58bce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/protocols/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ async def test_close_connection_with_multiple_requests(http_protocol_cls: HTTPPr
config_kw = {}
if http_protocol_cls == HttpToolsProtocol:
config_kw = {"lenient_flags": ["lenient_data_after_close"]}
protocol = get_connected_protocol(app, http_protocol_cls, **config_kw)
protocol = get_connected_protocol(app, http_protocol_cls, None, **config_kw)
protocol.data_received(REQUEST_AFTER_CONNECTION_CLOSE)
await protocol.loop.run_one()
assert b"HTTP/1.1 200 OK" in protocol.transport.buffer
Expand Down

0 comments on commit f58bce0

Please sign in to comment.