Ensure workers set to 0 for all functional tests

Fixes bug 1054388

Clear up a couple of cases where a functional test fired up a
wsgi.Server without explicitly setting the workers config option
to zero.

Change-Id: I5e2e8fe3c5d6e0c017d27074d35fd79b7dd7d79d
This commit is contained in:
Eoghan Glynn 2012-09-22 21:52:45 +01:00
parent 8a8b01174c
commit c2f1314bb8
2 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,7 @@ class TestClientExceptions(functional.FunctionalTest):
self.port = utils.get_unused_port()
server = wsgi.Server()
self.config(bind_host='127.0.0.1')
self.config(workers=0)
server.start(ExceptionTestApp, self.port)
self.client = client.BaseClient("127.0.0.1", self.port)

View File

@ -89,6 +89,7 @@ class TestClientRedirects(functional.FunctionalTest):
server_one = wsgi.Server()
server_two = wsgi.Server()
self.config(bind_host='127.0.0.1')
self.config(workers=0)
server_one.start(RedirectTestApp("one"), self.port_one)
server_two.start(RedirectTestApp("two"), self.port_two)
self.client = client.BaseClient("127.0.0.1", self.port_one)