Fix a race condition in one of the test

It appears that sometimes with memcached, the acquire of the lock takes
a little more time than expected, so let's be blocking instead to be
sure we grab it.

Change-Id: I87031c8c3523d0ec5dec1a9e3e585cfa3821eb8b
This commit is contained in:
Julien Danjou 2014-06-20 15:03:25 +02:00
parent 26e6243772
commit 698f554c9d
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ class TestAPI(testscenarios.TestWithScenarios,
lock2 = client2.get_lock(lock_name)
self.assertEqual(False, lock2.acquire(blocking=False))
lock.release()
self.assertEqual(True, lock2.acquire(blocking=False))
self.assertEqual(True, lock2.acquire(blocking=True))
@staticmethod
def _get_random_uuid():