Merge "wsgi.run_server no longer used"

This commit is contained in:
Jenkins 2014-02-23 06:12:42 +00:00 committed by Gerrit Code Review
commit 6222159d9e
2 changed files with 0 additions and 19 deletions

View File

@ -841,19 +841,6 @@ class ResourceTest(base.BaseTestCase):
self.assertEqual(500, result.status_int)
class ServerTest(base.BaseTestCase):
def test_run_server(self):
with mock.patch('eventlet.listen') as listen:
with mock.patch('eventlet.wsgi.server') as server:
wsgi.run_server(mock.sentinel.application, mock.sentinel.port)
server.assert_called_once_with(
listen.return_value,
mock.sentinel.application
)
listen.assert_called_once_with(('0.0.0.0', mock.sentinel.port))
class MiddlewareTest(base.BaseTestCase):
def test_process_response(self):
def application(environ, start_response):

View File

@ -81,12 +81,6 @@ CONF.register_opts(socket_opts)
LOG = logging.getLogger(__name__)
def run_server(application, port):
"""Run a WSGI server with the given application."""
sock = eventlet.listen(('0.0.0.0', port))
eventlet.wsgi.server(sock, application)
class WorkerService(object):
"""Wraps a worker to be handled by ProcessLauncher"""
def __init__(self, service, application):