# 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=60))
+ d.addCallback(lambda junk: self.poll(keypool_full))
d.addCallback(p, 'grabbing a few keys')
# grab a few keys, check that pool size shrinks
d.addCallback(p, 'checking pool replenishment')
# check that the pool will refill
- timeout = 4*kgs.key_generator.pool_size + kgs.key_generator.pool_refresh_delay
- d.addCallback(lambda junk: self.poll(keypool_full, timeout=timeout))
+ d.addCallback(lambda junk: self.poll(keypool_full))
return d