Adds support for the DBEnv->set_timeout() method.

This commit is contained in:
Gregory P. Smith 2003-03-27 17:23:29 +00:00
parent 3ae0f7a7cf
commit fe11d3e0d4
2 changed files with 33 additions and 1 deletions

View file

@ -97,7 +97,13 @@ class LockingTestCase(unittest.TestCase):
for t in threads:
t.join()
def test03_set_timeout(self):
# test that the set_timeout call works
if hasattr(self.env, 'set_timeout'):
self.env.set_timeout(0, db.DB_SET_LOCK_TIMEOUT)
self.env.set_timeout(0, db.DB_SET_TXN_TIMEOUT)
self.env.set_timeout(123456, db.DB_SET_LOCK_TIMEOUT)
self.env.set_timeout(7890123, db.DB_SET_TXN_TIMEOUT)
def theThread(self, sleepTime, lockType):
name = currentThread().getName()