Avoid hardcoding value from oslo library

In I65b40b9906b75146a0085bbe168f1e6bcae82f21, the
wsgi_default_pool_size was lowered from 1000 to
100. We should not be using internal details of
the oslo libraries.

Change-Id: I84f01df3e212165176c633a680161a9a9da311ea
This commit is contained in:
Davanum Srinivas 2016-02-24 06:48:05 -08:00
parent 44e307eb5e
commit e61b5bcf4f
1 changed files with 2 additions and 1 deletions

View File

@ -325,7 +325,8 @@ class TestWSGIService(test.TestCase):
# Resetting pool size to default
test_service.reset()
test_service.start()
self.assertEqual(1000, test_service.server._pool.size)
self.assertEqual(cfg.CONF.wsgi_default_pool_size,
test_service.server._pool.size)
self.assertTrue(mock_loader.called)
@mock.patch('oslo_service.wsgi.Loader')