summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-08-11 19:20:25 +0300
committerMax Romanov <max.romanov@nginx.com>2020-08-11 19:20:25 +0300
commit496f41c13435510a53da8dd1d383f63fd0c467ab (patch)
tree62719c13149de7e48398da7cf3e12c75abf83571
parentbab4a9e9f25d29d0ef0d01ac0f873cce333f1fe7 (diff)
downloadunit-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.
Diffstat (limited to '')
-rw-r--r--test/test_configuration.py4
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"}},
}