summaryrefslogtreecommitdiffhomepage
path: root/test/test_proxy.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2021-01-14 03:04:20 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2021-01-14 03:04:20 +0000
commitd43a84139d1adedbae8def67c8bbee09d8cf4581 (patch)
tree4e1b9ae1c6915e38fe0bf2de3d224cb9d1eb6c9b /test/test_proxy.py
parent5d983ea762eba5fe26a07defbc09eeec8ecc5aeb (diff)
downloadunit-d43a84139d1adedbae8def67c8bbee09d8cf4581.tar.gz
unit-d43a84139d1adedbae8def67c8bbee09d8cf4581.tar.bz2
Tests: added missing checks for configuration results.
Diffstat (limited to '')
-rw-r--r--test/test_proxy.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py
index b7c34390..2d305e98 100644
--- a/test/test_proxy.py
+++ b/test/test_proxy.py
@@ -172,7 +172,9 @@ Content-Length: 10
assert resp['status'] == 200, 'status'
assert resp['body'] == payload, 'body'
- self.conf({'http': {'max_body_size': 32 * 1024 * 1024}}, 'settings')
+ assert 'success' in self.conf(
+ {'http': {'max_body_size': 32 * 1024 * 1024}}, 'settings'
+ )
payload = '0123456789abcdef' * 32 * 64 * 1024
resp = self.post_http10(body=payload, read_buffer_size=1024 * 1024)
@@ -486,7 +488,7 @@ Content-Length: 10
r'accept.*failed',
r'new connections are not accepted',
)
- self.conf(
+ assert 'success' in self.conf(
{
"listeners": {
"*:7080": {"pass": "routes"},