summaryrefslogtreecommitdiffhomepage
path: root/test/unit/http.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2022-10-11 13:49:10 +0100
committerAndrei Zeliankou <zelenkov@nginx.com>2022-10-11 13:49:10 +0100
commit8e1e0471914b39da0634a23c4231ce98021a4cf7 (patch)
tree12560d3c455b54bda388c36c04eb61f8540d0680 /test/unit/http.py
parent8d976cac522d5223fbe4a4360368a351a197ddbf (diff)
downloadunit-8e1e0471914b39da0634a23c4231ce98021a4cf7.tar.gz
unit-8e1e0471914b39da0634a23c4231ce98021a4cf7.tar.bz2
Tests: don't try to return response when "no_recv" is True.
Diffstat (limited to 'test/unit/http.py')
-rw-r--r--test/unit/http.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/http.py b/test/unit/http.py
index b29667c9..144f300c 100644
--- a/test/unit/http.py
+++ b/test/unit/http.py
@@ -104,6 +104,9 @@ class TestHTTP:
resp = self.recvall(sock, **recvall_kwargs).decode(encoding)
+ else:
+ return sock
+
self.log_in(resp)
if 'raw_resp' not in kwargs: