From dfb625789b28fc35acded446aece0f962b5ab2bb Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Tue, 9 Apr 2019 20:59:41 +0300 Subject: [PATCH] Tests: read_timeout increased. --- test/unit/http.py | 4 ++-- 1 file 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: