MCPcopy Create free account
hub / github.com/ElementsProject/elements / wait_until

Method wait_until

test/functional/test_framework/p2p.py:448–454  ·  view source on GitHub ↗
(self, test_function_in, *, timeout=60, check_connected=True)

Source from the content-addressed store, hash-verified

446 # Connection helper methods
447
448 def wait_until(self, test_function_in, *, timeout=60, check_connected=True):
449 def test_function():
450 if check_connected:
451 assert self.is_connected
452 return test_function_in()
453
454 wait_until_helper(test_function, timeout=timeout, lock=p2p_lock, timeout_factor=self.timeout_factor)
455
456 def wait_for_connect(self, timeout=60):
457 test_function = lambda: self.is_connected

Callers 15

wait_for_disconnectMethod · 0.95
wait_for_txMethod · 0.95
wait_for_blockMethod · 0.95
wait_for_headerMethod · 0.95
wait_for_merkleblockMethod · 0.95
wait_for_getdataMethod · 0.95
wait_for_getheadersMethod · 0.95
wait_for_invMethod · 0.95
wait_for_verackMethod · 0.95
sync_with_pingMethod · 0.95

Calls 1

wait_until_helperFunction · 0.90

Tested by 15

test_nonnull_locatorsMethod · 0.36
test_getnettotalsMethod · 0.36
test_getnetworkinfoMethod · 0.36
test_height_minMethod · 0.36
test_bufferMethod · 0.36
run_testMethod · 0.36
test_tx_requestsMethod · 0.36
test_in_flight_maxMethod · 0.36
test_expiry_fallbackMethod · 0.36