From 15c04f6869c3ae4bb8906b3783551df0e718d462 Mon Sep 17 00:00:00 2001 From: Chuck Thier Date: Fri, 31 Jan 2014 18:58:52 +0000 Subject: [PATCH] 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 --- test/unit/common/test_memcached.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/unit/common/test_memcached.py b/test/unit/common/test_memcached.py index e0345fdb2b..bf8d1d2b22 100644 --- a/test/unit/common/test_memcached.py +++ b/test/unit/common/test_memcached.py @@ -508,8 +508,7 @@ class TestMemcached(unittest.TestCase): connections['1.2.3.5:11211'].put(mock_conn) # so far so good, everyone is still waiting - sleep(0) - self.assertEqual(pending['1.2.3.5:11211'], 8) + self.assertEqual(pending['1.2.3.5:11211'], 10) self.assertEqual(len(memcache_client._errors['1.2.3.5:11211']), 0) # but they won't wait longer than pool_timeout