From 8b0d47e7156563e0b64afcf3aa1b95f1f177d334 Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Fri, 13 Feb 2015 13:07:46 -0500 Subject: [PATCH] Tests: Don't require binding to port 4444 If some other process is listening on port 4444, test_server_pool_waitall will fail with: RuntimeError: Could not bind to 127.0.0.1:4444 after trying for 30 seconds This test doesn't require use of this specific port, so let it pick an unused port to avoid this failure. Closes-Bug: #1421759 Change-Id: I7e6d6f574cd2bbb2fa067001bba4b09b5204a5e1 --- cinder/tests/test_wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/tests/test_wsgi.py b/cinder/tests/test_wsgi.py index af70696a19f..a304abdcfd5 100644 --- a/cinder/tests/test_wsgi.py +++ b/cinder/tests/test_wsgi.py @@ -140,7 +140,7 @@ class TestWSGIServer(test.TestCase): def test_server_pool_waitall(self): # test pools waitall method gets called while stopping server server = cinder.wsgi.Server("test_server", None, - host="127.0.0.1", port=4444) + host="127.0.0.1") server.start() with mock.patch.object(server._pool, 'waitall') as mock_waitall: