From 496f41c13435510a53da8dd1d383f63fd0c467ab Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Tue, 11 Aug 2020 19:20:25 +0300 Subject: [PATCH] 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. --- test/test_configuration.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"}}, }