Skip to content

Commit 3aca0ed

Browse files
authored
test_lock: increase timeout (#10791)
1 parent 5bec7d1 commit 3aca0ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/func/test_lock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ def test_lock_waits_when_requested(request, tmp_path):
9191
p1.start()
9292
request.addfinalizer(p1.kill)
9393

94-
assert q.get(timeout=1) == "p1_acquired"
94+
assert q.get(timeout=4) == "p1_acquired"
9595

9696
# Process 2 will wait for the lock (should succeed)
9797
p2.start()
9898
request.addfinalizer(p2.kill)
9999

100-
assert q.get(timeout=1) == "p2_starting"
100+
assert q.get(timeout=4) == "p2_starting"
101101
assert q.empty()
102102

103103
# sleep to ensure Process 2 is waiting for the lock

0 commit comments

Comments
 (0)