From e61b5bcf4f8a22211b5c1467e27b790ca6af49c6 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Wed, 24 Feb 2016 06:48:05 -0800 Subject: [PATCH] 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 --- cinder/tests/unit/test_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cinder/tests/unit/test_service.py b/cinder/tests/unit/test_service.py index e94755983..143c17c80 100644 --- a/cinder/tests/unit/test_service.py +++ b/cinder/tests/unit/test_service.py @@ -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') -- 2.45.2