mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-17 10:20:13 +00:00
Stop starting the services so that we stop binding the ports
This commit is contained in:
parent
8e41c2d3e1
commit
ea257681bb
@ -84,20 +84,11 @@ class TestCase(testutil.SignalMixin, unittest.TestCase):
|
|||||||
def setUp(self):
|
def setUp(self):
|
||||||
testutil.SignalMixin.setUp(self)
|
testutil.SignalMixin.setUp(self)
|
||||||
self.parent = LoggingMultiService()
|
self.parent = LoggingMultiService()
|
||||||
self.parent.startService()
|
|
||||||
# We can use a made-up port number because these tests never actually
|
# We can use a made-up port number because these tests never actually
|
||||||
# try to bind the port. We'll use a low-numbered one that's likely to
|
# try to bind the port. We'll use a low-numbered one that's likely to
|
||||||
# conflict with another service to prove it.
|
# conflict with another service to prove it.
|
||||||
self._available_port = 22
|
self._available_port = 22
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
log.msg("%s.tearDown" % self.__class__.__name__)
|
|
||||||
testutil.SignalMixin.tearDown(self)
|
|
||||||
d = defer.succeed(None)
|
|
||||||
d.addCallback(lambda res: self.parent.stopService())
|
|
||||||
d.addCallback(flushEventualQueue)
|
|
||||||
return d
|
|
||||||
|
|
||||||
def _test_location(self, basedir, expected_addresses, tub_port=None, tub_location=None, local_addresses=None):
|
def _test_location(self, basedir, expected_addresses, tub_port=None, tub_location=None, local_addresses=None):
|
||||||
create_node_dir(basedir, "testing")
|
create_node_dir(basedir, "testing")
|
||||||
config_data = "[node]\n"
|
config_data = "[node]\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user