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:
parent
8a8b01174c
commit
c2f1314bb8
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user