Removed test case for bad header + bad path since the aihttp client will disallow the connections
@@ -325,11 +325,6 @@ def test_request_http_service(monkeypatch: Any, capsys: Any, loop: Any) -> None:
await ws.close()
assert instance.websocket_received_data == data
- async with aiohttp.ClientSession(loop=loop) as client:
- response = await client.get("http://127.0.0.1:{}/\u0000bad-data".format(port))
- assert response is not None
- assert response.status == 400
-
loop.run_until_complete(_async(loop))
instance.stop_service()
loop.run_until_complete(future)
