summaryrefslogtreecommitdiffhomepage
path: root/test/test_status.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_status.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/test_status.py')
-rw-r--r--test/test_status.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_status.py b/test/test_status.py
index 4c5e56ab..6c733474 100644
--- a/test/test_status.py
+++ b/test/test_status.py
@@ -81,7 +81,7 @@ Connection: close
)
assert Status.get('/requests/total') == 6, 'pipeline'
- (_, sock) = self.get(port=7081, no_recv=True, start=True)
+ sock = self.get(port=7081, no_recv=True)
time.sleep(1)
@@ -112,7 +112,7 @@ Connection: close
# idle
- _, sock = self.http(b'', start=True, raw=True, no_recv=True)
+ sock = self.http(b'', raw=True, no_recv=True)
self.check_connections(2, 0, 1, 1)
self.get(sock=sock)