Remove wsgi reset_pool_size_to_default test

Test case reset_pool_size_to_default listen on default Ironic port.
So when it running on same host with ironic-api, test fails.

oslo.service contains such test case, so we can just remove it:
https://github.com/openstack/oslo.service/blob/master/oslo_service/tests/test_wsgi.py#L225

Closes-Bug: #1523809
Change-Id: I36faa5280dd0e4feb0a708a4d601cd870053f918
This commit is contained in:
Anton Arefiev 2015-12-08 11:30:54 +02:00
parent 103e211d35
commit 9dbd14e551

View File

@ -22,22 +22,6 @@ CONF = cfg.CONF
class TestWSGIService(base.TestCase):
@mock.patch.object(service.app, 'VersionSelectorApplication')
def test_reset_pool_size_to_default(self, mock_app):
test_service = service.WSGIService("test_service")
test_service.start()
# Stopping the service, which in turn sets pool size to 0
test_service.stop()
self.assertEqual(0, test_service.server._pool.size)
# Resetting pool size to default
test_service.reset()
test_service.start()
self.assertTrue(test_service.server._pool.size > 0)
self.assertTrue(mock_app.called)
@mock.patch.object(service.wsgi, 'Server')
def test_workers_set_default(self, wsgi_server):
test_service = service.WSGIService("ironic_api")