summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--test/test_settings.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/test_settings.py b/test/test_settings.py
index 3df88ec4..845bfb14 100644
--- a/test/test_settings.py
+++ b/test/test_settings.py
@@ -32,12 +32,17 @@ Connection: close
self.conf({'http': { 'header_read_timeout': 4 }}, '/settings')
(resp, sock) = self.http(b"""GET / HTTP/1.1
-""", start=True, raw=True)
+""", start=True, raw=True, no_recv=True)
time.sleep(2)
(resp, sock) = self.http(b"""Host: localhost
-""", start=True, sock=sock, raw=True)
+""", start=True, sock=sock, raw=True, no_recv=True)
+
+ time.sleep(2)
+
+ (resp, sock) = self.http(b"""X-Blah: blah
+""", start=True, sock=sock, raw=True, no_recv=True)
time.sleep(2)
@@ -45,8 +50,6 @@ Connection: close
""", sock=sock, raw=True)
- time.sleep(2)
-
self.assertEqual(resp['status'], 408,
'status header read timeout update')