From: Mike Bayer Date: Mon, 22 Feb 2010 16:17:57 +0000 (+0000) Subject: increase the timeout here to accommodate slowness on the buildbot X-Git-Tag: rel_0_6beta2~164 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=03bcdb5bfbce8a026f7f8f1f3f892401fb8781fa;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git increase the timeout here to accommodate slowness on the buildbot --- diff --git a/test/engine/test_pool.py b/test/engine/test_pool.py index 53a7e40e9b..2b6ee5e58d 100644 --- a/test/engine/test_pool.py +++ b/test/engine/test_pool.py @@ -499,7 +499,10 @@ class QueuePoolTest(PoolTestBase): # wait for the timeout on queue.get(). the fix involves checking the # timeout again within the mutex, and if so, unlocking and throwing # them back to the start of do_get() - p = pool.QueuePool(creator = lambda: mock_dbapi.connect(delay=.05), pool_size = 2, max_overflow = 1, use_threadlocal = False, timeout=3) + p = pool.QueuePool( + creator = lambda: mock_dbapi.connect(delay=.05), + pool_size = 2, + max_overflow = 1, use_threadlocal = False, timeout=3) timeouts = [] def checkout(): for x in xrange(1): @@ -523,7 +526,8 @@ class QueuePoolTest(PoolTestBase): print timeouts assert len(timeouts) > 0 for t in timeouts: - assert abs(t - 3) < 1, "Not all timeouts were 3 seconds: " + repr(timeouts) + assert abs(t - 3) < 1.5, "Not all timeouts were within 50% of 3 seconds: "\ + + repr(timeouts) def _test_overflow(self, thread_count, max_overflow): def creator():