diff options
author | Max Romanov <max.romanov@nginx.com> | 2020-08-11 19:20:25 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2020-08-11 19:20:25 +0300 |
commit | 496f41c13435510a53da8dd1d383f63fd0c467ab (patch) | |
tree | 62719c13149de7e48398da7cf3e12c75abf83571 | |
parent | bab4a9e9f25d29d0ef0d01ac0f873cce333f1fe7 (diff) | |
download | unit-496f41c13435510a53da8dd1d383f63fd0c467ab.tar.gz unit-496f41c13435510a53da8dd1d383f63fd0c467ab.tar.bz2 |
Tests: reducing the number of generated applications.
Each application initializes a shared port with 2 file descriptors, so the test
fails because the router reaches the open files limit.
-rw-r--r-- | test/test_configuration.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_configuration.py b/test/test_configuration.py index 0329ef5e..fec1b3dc 100644 --- a/test/test_configuration.py +++ b/test/test_configuration.py @@ -400,7 +400,9 @@ class TestConfiguration(TestControl): "path": "/app", "module": "wsgi", } - for a in range(999) + # Larger number of applications can cause test fail with default + # open files limit due to the lack of file descriptors. + for a in range(100) }, "listeners": {"*:7080": {"pass": "applications/app-1"}}, } |