test_lock: increase timeout (#10791)

This commit is contained in:
skshetry
2025-06-26 13:24:55 +00:00
committed by GitHub
parent 5bec7d1bb9
commit 3aca0edfce
+2 -2
View File
@@ -91,13 +91,13 @@ def test_lock_waits_when_requested(request, tmp_path):
p1.start()
request.addfinalizer(p1.kill)
assert q.get(timeout=1) == "p1_acquired"
assert q.get(timeout=4) == "p1_acquired"
# Process 2 will wait for the lock (should succeed)
p2.start()
request.addfinalizer(p2.kill)
assert q.get(timeout=1) == "p2_starting"
assert q.get(timeout=4) == "p2_starting"
assert q.empty()
# sleep to ensure Process 2 is waiting for the lock