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:
parent
4b9667d9d6
commit
15c04f6869
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user