diff options
author | Kiall Mac Innes <kiall@hp.com> | 2013-03-17 11:41:18 +0000 |
---|---|---|
committer | Kiall Mac Innes <kiall@hp.com> | 2013-03-17 12:11:17 +0000 |
commit | 721e275cd58c063692cdb956f48cbcd07fdb66ec (patch) | |
tree | 442e4b7f41c9469471fcfc54e98131a9e0fbce04 /tests | |
parent | 65e3d8c9773880094c0a4c164e046fae9cb7a5d9 (diff) | |
download | oslo-721e275cd58c063692cdb956f48cbcd07fdb66ec.tar.gz oslo-721e275cd58c063692cdb956f48cbcd07fdb66ec.tar.xz oslo-721e275cd58c063692cdb956f48cbcd07fdb66ec.zip |
Move wsgi.Service socket creation into the constructor.
This allows wsgi.Service to be used with service.ProcessLauncher
Fixes Bug #1156182
Change-Id: I71714d243c8a1b90c7bc1006ca2ad1e8c4b30e57
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_wsgi.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/unit/test_wsgi.py b/tests/unit/test_wsgi.py index b83c865..1732c80 100644 --- a/tests/unit/test_wsgi.py +++ b/tests/unit/test_wsgi.py @@ -527,10 +527,6 @@ class WSGIServerTest(utils.BaseTestCase): server.stop() def test_ipv6_listen_called_with_scope(self): - server = wsgi.Service("test_app", - 1234, - host="fe80::204:acff:fe96:da87%eth0") - with mock.patch.object(wsgi.eventlet, 'listen') as mock_listen: with mock.patch.object(socket, 'getaddrinfo') as mock_get_addr: mock_get_addr.return_value = [ @@ -540,7 +536,10 @@ class WSGIServerTest(utils.BaseTestCase): '', ('fe80::204:acff:fe96:da87%eth0', 1234, 0, 2)) ] - server.start() + + wsgi.Service("test_app", + 1234, + host="fe80::204:acff:fe96:da87%eth0") mock_get_addr.assert_called_once_with( "fe80::204:acff:fe96:da87%eth0", |