Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Eoghan Glynn committed Sep 22, 2012
1 parent 8a8b011 commit c2f1314
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions glance/tests/functional/test_client_exceptions.py
Expand Up @@ -70,6 +70,7 @@ def setUp(self):
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)

Expand Down
1 change: 1 addition & 0 deletions glance/tests/functional/test_client_redirects.py
Expand Up @@ -89,6 +89,7 @@ def setUp(self):
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)
Expand Down

0 comments on commit c2f1314

Please sign in to comment.