]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_introducer: flushEventualQueue at the end of the test run
authorBrian Warner <warner@allmydata.com>
Wed, 28 Mar 2007 00:16:13 +0000 (17:16 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 28 Mar 2007 00:16:13 +0000 (17:16 -0700)
src/allmydata/test/test_introducer.py

index 7d7ce0e631359747bb02286da6da18e105499d00..c1f78cdc23b4179b58815fc20e2f2528cd2efedf 100644 (file)
@@ -5,6 +5,7 @@ from twisted.python import log
 defer.setDebugging(True)
 
 from foolscap import Tub, Referenceable
+from foolscap.eventual import flushEventualQueue
 from twisted.application import service
 from allmydata.introducer import IntroducerClient, Introducer
 from allmydata.util import idlib
@@ -25,6 +26,7 @@ class TestIntroducer(unittest.TestCase):
         d = defer.Deferred()
         reactor.callLater(1.1, d.callback, None)
         d.addCallback(lambda res: self.parent.stopService())
+        d.addCallback(flushEventualQueue)
         return d