diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-22 16:17:57 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-22 16:17:57 +0000 |
| commit | 03bcdb5bfbce8a026f7f8f1f3f892401fb8781fa (patch) | |
| tree | 0b8594a4584d0d5745bef95b6805298e4bc3b05b | |
| parent | b3f1513eafefc9bad1a36d58661f88cc84536125 (diff) | |
| download | sqlalchemy-03bcdb5bfbce8a026f7f8f1f3f892401fb8781fa.tar.gz | |
increase the timeout here to accommodate slowness on the buildbot
| -rw-r--r-- | test/engine/test_pool.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/engine/test_pool.py b/test/engine/test_pool.py index 53a7e40e9..2b6ee5e58 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(): |
