aboutsummaryrefslogtreecommitdiff
path: root/test/functional/example_test.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-08-27 08:55:20 +0200
committerMarcoFalke <falke.marco@gmail.com>2020-08-27 18:50:05 +0200
commitfad2794e93b4f5976e81793a4a63aa03a2c8c686 (patch)
tree6b4794a6712d3288880a7cd7bffe181f449c6a06 /test/functional/example_test.py
parentfacb41bf1d1b7ee552c627f9829b4494b817ce28 (diff)
downloadbitcoin-fad2794e93b4f5976e81793a4a63aa03a2c8c686.tar.xz
test: Rename wait until helper to wait_until_helper
Diffstat (limited to 'test/functional/example_test.py')
-rwxr-xr-xtest/functional/example_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/example_test.py b/test/functional/example_test.py
index 1832043989..083deb6460 100755
--- a/test/functional/example_test.py
+++ b/test/functional/example_test.py
@@ -207,10 +207,11 @@ class ExampleTest(BitcoinTestFramework):
self.log.info("Check that each block was received only once")
# The network thread uses a global lock on data access to the P2PConnection objects when sending and receiving
# messages. The test thread should acquire the global lock before accessing any P2PConnection data to avoid locking
- # and synchronization issues. Note wait_until() acquires this global lock when testing the predicate.
+ # and synchronization issues. Note p2p.wait_until() acquires this global lock internally when testing the predicate.
with p2p_lock:
for block in self.nodes[2].p2p.block_receive_map.values():
assert_equal(block, 1)
+
if __name__ == '__main__':
ExampleTest().main()