From f34c03f1d9fe146d5faad9a03e4922d8bb1d4dfc Mon Sep 17 00:00:00 2001 From: Salvatore Mesoraca Date: Wed, 12 Jun 2024 17:47:53 +0200 Subject: [PATCH] Reduce test flakiness Increase the fudge factor of a test checking lock mechanisms. This should reduce its flakiness. Signed-off-by: Salvatore Mesoraca --- tests/test_lock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_lock.py b/tests/test_lock.py index 00c50f54..4f2b8fa2 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.05 + fudge_factor = 0.1 lock2 = self.get_lock(r, "foo", sleep=sleep, blocking_timeout=bt) start = time.monotonic() assert not lock2.acquire()