From 9dbd14e551acbb50a3d6d0a3c4b19bbed76490c8 Mon Sep 17 00:00:00 2001 From: Anton Arefiev Date: Tue, 8 Dec 2015 11:30:54 +0200 Subject: [PATCH] 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 --- ironic/tests/unit/common/test_service.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/ironic/tests/unit/common/test_service.py b/ironic/tests/unit/common/test_service.py index 51aaa0b6c5..d08db92bbd 100644 --- a/ironic/tests/unit/common/test_service.py +++ b/ironic/tests/unit/common/test_service.py @@ -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")