From: Brian Warner Date: Wed, 28 Mar 2007 00:16:13 +0000 (-0700) Subject: test_introducer: flushEventualQueue at the end of the test run X-Git-Url: https://git.rkrishnan.org/components/%22news.html/frontends/FTP-and-SFTP.txt?a=commitdiff_plain;h=51ad4418f774e97e19f50808e2e4a0f7bc4af98c;p=tahoe-lafs%2Ftahoe-lafs.git test_introducer: flushEventualQueue at the end of the test run --- diff --git a/src/allmydata/test/test_introducer.py b/src/allmydata/test/test_introducer.py index 7d7ce0e6..c1f78cdc 100644 --- a/src/allmydata/test/test_introducer.py +++ b/src/allmydata/test/test_introducer.py @@ -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