rearrange service startup a bit, now Node.startService() returns a Deferred that fires when the tub is actually ready, and there is also a Node.when_tub_ready() hook. This allows get_local_addresses() to be slow and not break everything. Changed all necessary test cases to accomodate this slow startup.

This commit is contained in:
Brian Warner
2007-03-08 15:10:36 -07:00
parent 2f02659b5a
commit 78d19c271c
6 changed files with 57 additions and 18 deletions

View File

@ -21,7 +21,8 @@ class StorageTest(unittest.TestCase):
self.node.setServiceParent(self.svc)
self.tub = Tub()
self.tub.setServiceParent(self.svc)
return self.svc.startService()
self.svc.startService()
return self.node.when_tub_ready()
def test_create_bucket(self):
"""