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.
This commit is contained in:
Max Romanov
2020-08-11 19:20:25 +03:00
parent bab4a9e9f2
commit 496f41c134

View File

@@ -400,7 +400,9 @@ class TestConfiguration(TestControl):
"path": "/app", "path": "/app",
"module": "wsgi", "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"}}, "listeners": {"*:7080": {"pass": "applications/app-1"}},
} }