diff --git a/tests/test_asyncio/test_lock.py b/tests/test_asyncio/test_lock.py index 264eeb47..d2d9e130 100644 --- a/tests/test_asyncio/test_lock.py +++ b/tests/test_asyncio/test_lock.py @@ -107,7 +107,7 @@ async def test_blocking(self, r): async def test_blocking_timeout(self, r): lock1 = self.get_lock(r, "foo") assert await lock1.acquire(blocking=False) - bt = 0.2 + bt = 0.9 sleep = 0.05 lock2 = self.get_lock(r, "foo", sleep=sleep, blocking_timeout=bt) start = asyncio.get_running_loop().time() diff --git a/tests/test_lock.py b/tests/test_lock.py index bae5e663..329f127e 100644 --- a/tests/test_lock.py +++ b/tests/test_lock.py @@ -101,7 +101,7 @@ def test_blocking_timeout(self, r): assert lock1.acquire(blocking=False) bt = 0.4 sleep = 0.05 - fudge_factor = 0.1 + fudge_factor = 0.5 lock2 = self.get_lock(r, "foo", sleep=sleep, blocking_timeout=bt) start = time.monotonic() assert not lock2.acquire() @@ -120,7 +120,7 @@ def test_context_manager_blocking_timeout(self, r): with self.get_lock(r, "foo", blocking=False): bt = 0.4 sleep = 0.05 - fudge_factor = 0.05 + fudge_factor = 0.5 lock2 = self.get_lock(r, "foo", sleep=sleep, blocking_timeout=bt) start = time.monotonic() assert not lock2.acquire()