diff options
Diffstat (limited to '')
-rw-r--r-- | test/test_configuration.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/test_configuration.py b/test/test_configuration.py index 67a8946e..de20ac25 100644 --- a/test/test_configuration.py +++ b/test/test_configuration.py @@ -264,5 +264,30 @@ class TestUnitConfiguration(unit.TestUnitControl): self.assertIn('success', self.conf(conf)) + def test_json_application_many2(self): + self.skip_alerts.extend([ + r'eventfd.+failed', + r'epoll.+failed', + r'failed to apply' + ]) + + conf = { + "applications": + {"app-" + str(a): { + "type": "python", + "processes": { "spare": 0 }, + "path": "/app", + "module": "wsgi" + } for a in range(999) + }, + "listeners": { + "*:7001": { + "application": "app-1" + } + } + } + + self.assertIn('success', self.conf(conf)) + if __name__ == '__main__': TestUnitConfiguration.main() |