Increase tolerance for lock timing

This commit is contained in:
thePR0M3TH3AN committed 2025-06-29 20:56:06 -04:00
1 parent 814dbc6b40
commit f5aee27794
1 file changed
+4 -1
+4 -1
View File
@@ -37,4 +37,7 @@ def test_exclusive_lock_blocks_until_released(tmp_path: Path):
p2.join()
# CI runners can be jittery; allow generous slack around the 1s lock hold time
assert wait_time.value == pytest.approx(1.0, abs=0.4)
# Different operating systems spawn processes at slightly different speeds
# which can shift the measured wait time by a few hundred milliseconds. A
# wider tolerance keeps the test stable across platforms.
assert wait_time.value == pytest.approx(1.0, abs=0.5)