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:
parent
26e6243772
commit
698f554c9d
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue