diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-02-06 20:31:48 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-02-06 20:31:48 +0300 |
commit | b4e467e669fc35a92e371280e4068653db53c1b5 (patch) | |
tree | 9b14f9062e3e68b660b5975b2424cc148864f647 /test | |
parent | 5c35d30cc8527abee446ea8d131afa2973e43482 (diff) | |
download | unit-b4e467e669fc35a92e371280e4068653db53c1b5.tar.gz unit-b4e467e669fc35a92e371280e4068653db53c1b5.tar.bz2 |
Fixed configuration checks for "max" property.
Diffstat (limited to '')
-rw-r--r-- | test/test_python_procman.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_python_procman.py b/test/test_python_procman.py index 523067f8..52f5ac96 100644 --- a/test/test_python_procman.py +++ b/test/test_python_procman.py @@ -67,6 +67,11 @@ def application(env, start_response): self.assertIn('error', self.conf_get('/applications/' + self.app_name + '/processes/idle_timeout'), 'idle_timeout no access') + def test_python_processes_spare_gt_max_default(self): + self.assertIn('error', self.conf({"spare": 2}, + '/applications/' + self.app_name + '/processes'), + 'spare greater than max default') + def test_python_processes_spare_gt_max(self): self.assertIn('error', self.conf({ "spare": 2, |