Skip to content

Commit 6206838

Browse files
committed
[tests] Make mininode_lock non-reentrant
There's no need for mininode_lock to be reentrant. Use a simpler non-recursive lock.
1 parent c67c1f2 commit 6206838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/test_framework/mininode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def test_function():
492492
# P2PConnection acquires this lock whenever delivering a message to a P2PInterface.
493493
# This lock should be acquired in the thread running the test logic to synchronize
494494
# access to any data shared with the P2PInterface or P2PConnection.
495-
mininode_lock = threading.RLock()
495+
mininode_lock = threading.Lock()
496496

497497

498498
class NetworkThread(threading.Thread):

0 commit comments

Comments
 (0)