diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-09-04 02:30:27 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-09-04 02:30:27 +0300 |
commit | 58d23eb5b4cc15a11fa4550dc165b6be4797525a (patch) | |
tree | e767db18796e1e4c4168f8efe5028c185add9794 /test/test_settings.py | |
parent | 9f5349d347bf6970366414d6328e57a89107c8d7 (diff) | |
download | unit-58d23eb5b4cc15a11fa4550dc165b6be4797525a.tar.gz unit-58d23eb5b4cc15a11fa4550dc165b6be4797525a.tar.bz2 |
Tests: fixed test_settings_header_read_timeout_update.
Diffstat (limited to 'test/test_settings.py')
-rw-r--r-- | test/test_settings.py | 11 |
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') |