From ea257681bb8d44decbabdb89442fb2aba06d1435 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Thu, 22 Oct 2020 14:36:49 -0400 Subject: [PATCH] Stop starting the services so that we stop binding the ports --- src/allmydata/test/test_node.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/allmydata/test/test_node.py b/src/allmydata/test/test_node.py index f04ec6213..99a30605d 100644 --- a/src/allmydata/test/test_node.py +++ b/src/allmydata/test/test_node.py @@ -84,20 +84,11 @@ class TestCase(testutil.SignalMixin, unittest.TestCase): def setUp(self): testutil.SignalMixin.setUp(self) self.parent = LoggingMultiService() - self.parent.startService() # 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 # conflict with another service to prove it. 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): create_node_dir(basedir, "testing") config_data = "[node]\n"