summaryrefslogtreecommitdiffhomepage
path: root/test/unit/http.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-04-09 20:59:41 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-04-09 20:59:41 +0300
commitdfb625789b28fc35acded446aece0f962b5ab2bb (patch)
tree52fa572181b0ebcf0a1f5d0205f93f21822fde5b /test/unit/http.py
parent29b4e4431fe43f9ac969a1cdb67478da8c5dcc1e (diff)
downloadunit-dfb625789b28fc35acded446aece0f962b5ab2bb.tar.gz
unit-dfb625789b28fc35acded446aece0f962b5ab2bb.tar.bz2
Tests: read_timeout increased.
Diffstat (limited to '')
-rw-r--r--test/unit/http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/http.py b/test/unit/http.py
index cbe6e612..1ce86e5a 100644
--- a/test/unit/http.py
+++ b/test/unit/http.py
@@ -88,7 +88,7 @@ class TestHTTP(TestUnit):
if 'no_recv' not in kwargs:
enc = 'utf-8' if 'encoding' not in kwargs else kwargs['encoding']
read_timeout = (
- 5 if 'read_timeout' not in kwargs else kwargs['read_timeout']
+ 30 if 'read_timeout' not in kwargs else kwargs['read_timeout']
)
resp = self.recvall(sock, read_timeout=read_timeout).decode(enc)
@@ -116,7 +116,7 @@ class TestHTTP(TestUnit):
def put(self, **kwargs):
return self.http('PUT', **kwargs)
- def recvall(self, sock, read_timeout=5, buff_size=4096):
+ def recvall(self, sock, read_timeout=30, buff_size=4096):
data = b''
while select.select([sock], [], [], read_timeout)[0]:
try: