about summary refs log tree commit diff
path: root/tst/test_listen.py
diff options
context:
space:
mode:
Diffstat (limited to 'tst/test_listen.py')
-rw-r--r--tst/test_listen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tst/test_listen.py b/tst/test_listen.py
index 45289d5..55a69e0 100644
--- a/tst/test_listen.py
+++ b/tst/test_listen.py
@@ -50,7 +50,7 @@ def ports():
 
 def serials():
     """Return a Hypothesis strategy for TLS serial number."""
-    return integers(0, 256**20-1)
+    return integers(1, 256**20-1)
 
 
 def base64s():
@@ -176,9 +176,9 @@ async def fetch_xml(socket, url, content_type):
     header_parser = BytesHeaderParser()
     xml_parser = XMLParser(encoding='utf-8')
     async with connect(socket) as (reader, writer):
-        await write_request(writer, f'GET {url} HTTP/2\r\n')
+        await write_request(writer, f'GET {url} HTTP/1.1\r\n')
         status = await reader.readuntil(b'\r\n')
-        assert status == b'HTTP/2 200 OK\r\n'
+        assert status == b'HTTP/1.1 200 OK\r\n'
         headers_bytes = await reader.readuntil(b'\r\n\r\n')
         headers = header_parser.parsebytes(headers_bytes)
         assert headers['Content-Type'] == content_type