mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 11:16:24 +00:00
Correct addCleanup reference
Some test_storage.py classes contain calls to cleanup methods instead of references. This commit fixes that. Signed-off-by: Fon E. Noel NFEBE <fenn25.fn@gmail.com>
This commit is contained in:
parent
6b0fa64236
commit
b193ad3ed4
@ -563,7 +563,7 @@ class Server(AsyncTestCase):
|
||||
self.sparent = LoggingServiceParent()
|
||||
self.sparent.startService()
|
||||
self._lease_secret = itertools.count()
|
||||
self.addCleanup(self.sparent.stopService())
|
||||
self.addCleanup(self.sparent.stopService)
|
||||
|
||||
def workdir(self, name):
|
||||
basedir = os.path.join("storage", "Server", name)
|
||||
@ -1284,7 +1284,7 @@ class MutableServer(SyncTestCase):
|
||||
super(MutableServer, self).setUp()
|
||||
self.sparent = LoggingServiceParent()
|
||||
self._lease_secret = itertools.count()
|
||||
self.addCleanup(self.sparent.stopService())
|
||||
self.addCleanup(self.sparent.stopService)
|
||||
|
||||
def workdir(self, name):
|
||||
basedir = os.path.join("storage", "MutableServer", name)
|
||||
@ -3337,7 +3337,7 @@ class Stats(SyncTestCase):
|
||||
super(Stats, self).setUp()
|
||||
self.sparent = LoggingServiceParent()
|
||||
self._lease_secret = itertools.count()
|
||||
self.addCleanup(self.sparent.stopService())
|
||||
self.addCleanup(self.sparent.stopService)
|
||||
|
||||
def workdir(self, name):
|
||||
basedir = os.path.join("storage", "Server", name)
|
||||
|
Loading…
Reference in New Issue
Block a user