Attempt to fix periodic memcache timeout test

Not sure this will really fix the issue, but made a small change that
seemed to make more sense for the flow of the test.

Closes-Bug: #1272503
Change-Id: Ifb25ed7c4a42b11f74d865787f63fea4e0beb745
This commit is contained in:
Chuck Thier 2014-01-31 18:58:52 +00:00
parent 4b9667d9d6
commit 15c04f6869

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