fix test_introducer to wait for the right things in order to avoid intermittent test failures

This commit is contained in:
Zooko O'Whielacronx 2007-12-11 14:08:15 -07:00
parent dc3d9f28b8
commit 4210ba2b8a
1 changed files with 1 additions and 4 deletions

View File

@ -141,10 +141,7 @@ class TestIntroducer(unittest.TestCase, testutil.PollMixin):
log.msg(" waiting until peer notices the disconnection") log.msg(" waiting until peer notices the disconnection")
return origin_c.when_fewer_than_peers(NUMCLIENTS) return origin_c.when_fewer_than_peers(NUMCLIENTS)
d.addCallback(_wait_til_he_notices) d.addCallback(_wait_til_he_notices)
def _wait_for_reconnection(res): d.addCallback(_wait_for_all_connections)
log.msg(" doing _wait_for_reconnection()")
return origin_c.when_enough_peers(NUMCLIENTS)
d.addCallback(_wait_for_reconnection)
def _check2(res): def _check2(res):
log.msg("doing _check2") log.msg("doing _check2")
for c in clients: for c in clients: