summaryrefslogtreecommitdiffhomepage
path: root/test/test_reconfigure.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_reconfigure.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_reconfigure.py')
-rw-r--r--test/test_reconfigure.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_reconfigure.py b/test/test_reconfigure.py
index ab05a1c8..feb027aa 100644
--- a/test/test_reconfigure.py
+++ b/test/test_reconfigure.py
@@ -21,10 +21,9 @@ class TestReconfigure(TestApplicationProto):
assert 'success' in self.conf({"listeners": {}, "applications": {}})
def test_reconfigure(self):
- (_, sock) = self.http(
+ sock = self.http(
b"""GET / HTTP/1.1
""",
- start=True,
raw=True,
no_recv=True,
)
@@ -42,7 +41,7 @@ Connection: close
assert resp['status'] == 200, 'finish request'
def test_reconfigure_2(self):
- (_, sock) = self.http(b'', raw=True, start=True, no_recv=True)
+ sock = self.http(b'', raw=True, no_recv=True)
# Waiting for connection completion.
# Delay should be more than TCP_DEFER_ACCEPT.