]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_introducer.py: increase timeouts on poll() calls
authorBrian Warner <warner@allmydata.com>
Tue, 5 Feb 2008 23:37:58 +0000 (16:37 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 5 Feb 2008 23:37:58 +0000 (16:37 -0700)
src/allmydata/test/test_introducer.py

index 5f154b4bfe656e834534769ba237d4cd0ae915d9..f70e073996b02143c4820987f175cdc53c569a9f 100644 (file)
@@ -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")