]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
key_generator: up timeouts on keygen test
authorrobk-tahoe <robk-tahoe@allmydata.com>
Thu, 3 Apr 2008 23:26:24 +0000 (16:26 -0700)
committerrobk-tahoe <robk-tahoe@allmydata.com>
Thu, 3 Apr 2008 23:26:24 +0000 (16:26 -0700)
in both these cases, the timeout only serves to abort a stuck test, and
the key_generator should respond more quickly, but seeing test failures
in buildbot on some platforms suggests that the test is too susceptible
to timing issues on loaded buildslaves.

src/allmydata/test/test_keygen.py

index 7db87539a32c1405d774c875fdcc9cc57792392d..81d6df7e189b123a185642b74f04c6faf4cec5e6 100644 (file)
@@ -51,7 +51,7 @@ class KeyGenService(unittest.TestCase, testutil.PollMixin):
         # first wait for key gen pool to fill up
         d = eventual.fireEventually()
         d.addCallback(p, 'waiting for pool to fill up')
-        d.addCallback(lambda junk: self.poll(keypool_full, timeout=16))
+        d.addCallback(lambda junk: self.poll(keypool_full, timeout=60))
 
         d.addCallback(p, 'grabbing a few keys')
         # grab a few keys, check that pool size shrinks
@@ -92,7 +92,7 @@ class KeyGenService(unittest.TestCase, testutil.PollMixin):
 
         d.addCallback(p, 'checking pool replenishment')
         # check that the pool will refill
-        timeout = 2*kgs.key_generator.pool_size + kgs.key_generator.pool_refresh_delay
+        timeout = 4*kgs.key_generator.pool_size + kgs.key_generator.pool_refresh_delay
         d.addCallback(lambda junk: self.poll(keypool_full, timeout=timeout))
 
         return d