From a7ea39e626173ffa689dd9920dc1aff2bbcc25b7 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 5 Feb 2008 16:37:58 -0700 Subject: [PATCH] test_introducer.py: increase timeouts on poll() calls --- src/allmydata/test/test_introducer.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/allmydata/test/test_introducer.py b/src/allmydata/test/test_introducer.py index 5f154b4b..f70e0739 100644 --- a/src/allmydata/test/test_introducer.py +++ b/src/allmydata/test/test_introducer.py @@ -122,7 +122,7 @@ class TestIntroducer(unittest.TestCase, testutil.PollMixin): if len(c.get_all_connections()) < NUMCLIENTS: return False return True - d = self.poll(_wait_for_all_connections, timeout=5) + d = self.poll(_wait_for_all_connections) def _check1(res): log.msg("doing _check1") @@ -148,12 +148,12 @@ class TestIntroducer(unittest.TestCase, testutil.PollMixin): # noticing the loss def _compare(): return current_counter != origin_c.counter - return self.poll(_compare, timeout=5) + return self.poll(_compare) d.addCallback(_disconnect_somebody_else) # and wait for them to reconnect - d.addCallback(lambda res: self.poll(_wait_for_all_connections, timeout=5)) + d.addCallback(lambda res: self.poll(_wait_for_all_connections)) def _check2(res): log.msg("doing _check2") for c in clients: @@ -171,10 +171,10 @@ class TestIntroducer(unittest.TestCase, testutil.PollMixin): def _compare(): return current_counter != origin_c.counter - return self.poll(_compare, timeout=5) + return self.poll(_compare) d.addCallback(_disconnect_yourself) - d.addCallback(lambda res: self.poll(_wait_for_all_connections, timeout=5)) + d.addCallback(lambda res: self.poll(_wait_for_all_connections)) def _check3(res): log.msg("doing _check3") for c in clients: @@ -194,7 +194,7 @@ class TestIntroducer(unittest.TestCase, testutil.PollMixin): if c.connected_to_introducer(): return False return True - d.addCallback(lambda res: self.poll(_wait_for_introducer_loss, timeout=5)) + d.addCallback(lambda res: self.poll(_wait_for_introducer_loss)) def _check4(res): log.msg("doing _check4") -- 2.45.2