From: Zooko O'Whielacronx Date: Tue, 11 Dec 2007 21:08:15 +0000 (-0700) Subject: fix test_introducer to wait for the right things in order to avoid intermittent test... X-Git-Url: https://git.rkrishnan.org/about.html?a=commitdiff_plain;h=4210ba2b8ac00107ea9a93494cb628637a9fc85c;p=tahoe-lafs%2Ftahoe-lafs.git fix test_introducer to wait for the right things in order to avoid intermittent test failures --- diff --git a/src/allmydata/test/test_introducer.py b/src/allmydata/test/test_introducer.py index 7a8e6f09..0c521222 100644 --- a/src/allmydata/test/test_introducer.py +++ b/src/allmydata/test/test_introducer.py @@ -141,10 +141,7 @@ class TestIntroducer(unittest.TestCase, testutil.PollMixin): log.msg(" waiting until peer notices the disconnection") return origin_c.when_fewer_than_peers(NUMCLIENTS) d.addCallback(_wait_til_he_notices) - def _wait_for_reconnection(res): - log.msg(" doing _wait_for_reconnection()") - return origin_c.when_enough_peers(NUMCLIENTS) - d.addCallback(_wait_for_reconnection) + d.addCallback(_wait_for_all_connections) def _check2(res): log.msg("doing _check2") for c in clients: