diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2025-05-29 19:48:43 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2025-05-29 19:48:43 +0900 |
commit | 2cae401524fe2436e3f78d218f7c27bc5aee053c (patch) | |
tree | 75dee387101d129052d88944df3b992308608993 /tst/test_listen.py | |
parent | d481c68fef4a78f757d78de92f1fad32ce0dd891 (diff) | |
download | scadere-2cae401524fe2436e3f78d218f7c27bc5aee053c.tar.gz |
Fix test for status 404
Diffstat (limited to 'tst/test_listen.py')
-rw-r--r-- | tst/test_listen.py | 2 |
1 files changed, 1 insertions, 1 deletions
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' |