From 2cae401524fe2436e3f78d218f7c27bc5aee053c Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Thu, 29 May 2025 19:48:43 +0900 Subject: Fix test for status 404 --- tst/test_listen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tst/test_listen.py') diff --git a/tst/test_listen.py b/tst/test_listen.py index dc4dfd1..07a0b65 100644 --- a/tst/test_listen.py +++ b/tst/test_listen.py @@ -242,7 +242,7 @@ async def test_http_200(base_url, certs): async def not_found(socket, url): """Send GET request for URL and expect a 404 status from socket.""" async with connect(socket) as (reader, writer): - writer.write(f'GET {urlsplit(url).path}\r\n'.encode()) + writer.write(f'GET {url}\r\n'.encode()) await writer.drain() response = await reader.readuntil(b'\r\n') assert response == b'HTTP/1.1 404 Not Found\r\n' -- cgit 1.4.1