summaryrefslogtreecommitdiffhomepage
path: root/test/test_settings.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/test_settings.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 '')
-rw-r--r--test/test_settings.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/test_settings.py b/test/test_settings.py
index ea3cfb99..1bc9a432 100644
--- a/test/test_settings.py
+++ b/test/test_settings.py
@@ -50,20 +50,18 @@ Connection: close
{'http': {'header_read_timeout': 4}}, 'settings'
)
- (resp, sock) = self.http(
+ sock = self.http(
b"""GET / HTTP/1.1
""",
- start=True,
raw=True,
no_recv=True,
)
time.sleep(2)
- (resp, sock) = self.http(
+ sock = self.http(
b"""Host: localhost
""",
- start=True,
sock=sock,
raw=True,
no_recv=True,
@@ -245,7 +243,7 @@ Connection: close
self.load('empty')
def req():
- _, sock = self.http(b'', start=True, raw=True, no_recv=True)
+ sock = self.http(b'', raw=True, no_recv=True)
time.sleep(3)