]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Avoid hardcoding value from oslo library
authorDavanum Srinivas <davanum@gmail.com>
Wed, 24 Feb 2016 14:48:05 +0000 (06:48 -0800)
committerDavanum Srinivas <davanum@gmail.com>
Wed, 24 Feb 2016 14:49:18 +0000 (06:49 -0800)
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

index e94755983337c339ab74df6707190cc18c5670fc..143c17c80c12ce510419af7345cd2e768a97d882 100644 (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')