From 22a496b85621470a8c672c28173f7be3a5830788 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sun, 29 Jun 2025 18:19:33 -0400 Subject: [PATCH] Fix file lock test timing --- src/tests/test_file_lock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests/test_file_lock.py b/src/tests/test_file_lock.py index 3dd98e1..6f797af 100644 --- a/src/tests/test_file_lock.py +++ b/src/tests/test_file_lock.py @@ -28,9 +28,10 @@ def test_exclusive_lock_blocks_until_released(tmp_path: Path): p1.start() started.wait() + time.sleep(0.1) p2.start() p1.join() p2.join() - assert wait_time.value >= 1.0 + assert wait_time.value >= 0.9