From 3d05e1ec070b177100722ffa363a688b6c1ab3a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=2E=20K=C3=A4rkk=C3=A4inen?= Date: Mon, 24 Feb 2020 17:27:04 +0200 Subject: [PATCH] Change of test: don't require early bad request error but only after CRLF-CRLF. --- tests/test_bad_request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_bad_request.py b/tests/test_bad_request.py index 3f237a41..e495e7b8 100644 --- a/tests/test_bad_request.py +++ b/tests/test_bad_request.py @@ -8,7 +8,7 @@ def test_bad_request_response(app): async def _request(sanic, loop): connect = asyncio.open_connection("127.0.0.1", 42101) reader, writer = await connect - writer.write(b"not http") + writer.write(b"not http\r\n\r\n") while True: line = await reader.readline() if not line: