Merge "Attempt to fix periodic memcache timeout test"

This commit is contained in:
Jenkins 2014-02-01 02:55:20 +00:00 committed by Gerrit Code Review
commit e26e915330

View File

@ -508,8 +508,7 @@ class TestMemcached(unittest.TestCase):
connections['1.2.3.5:11211'].put(mock_conn) connections['1.2.3.5:11211'].put(mock_conn)
# so far so good, everyone is still waiting # so far so good, everyone is still waiting
sleep(0) self.assertEqual(pending['1.2.3.5:11211'], 10)
self.assertEqual(pending['1.2.3.5:11211'], 8)
self.assertEqual(len(memcache_client._errors['1.2.3.5:11211']), 0) self.assertEqual(len(memcache_client._errors['1.2.3.5:11211']), 0)
# but they won't wait longer than pool_timeout # but they won't wait longer than pool_timeout