mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-13 13:53:07 +00:00
test_introducer: flushEventualQueue at the end of the test run
This commit is contained in:
parent
25ff9e1f97
commit
51ad4418f7
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user