Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/test_framework.py
Show First 20 Lines • Show All 603 Lines • ▼ Show 20 Lines | def sync_proofs(self, nodes=None, wait=1, timeout=60): | ||||
timeout, | timeout, | ||||
"".join("\n {!r}".format(m) for m in nodes_proofs), | "".join("\n {!r}".format(m) for m in nodes_proofs), | ||||
)) | )) | ||||
def sync_all(self, nodes=None): | def sync_all(self, nodes=None): | ||||
self.sync_blocks(nodes) | self.sync_blocks(nodes) | ||||
self.sync_mempools(nodes) | self.sync_mempools(nodes) | ||||
def wait_until(self, test_function, timeout=60, lock=None): | def wait_until(self, test_function, timeout=60): | ||||
return wait_until_helper(test_function, timeout=timeout, lock=lock, | return wait_until_helper(test_function, timeout=timeout, | ||||
timeout_factor=self.options.timeout_factor) | timeout_factor=self.options.timeout_factor) | ||||
# Private helper methods. These should not be accessed by the subclass | # Private helper methods. These should not be accessed by the subclass | ||||
# test scripts. | # test scripts. | ||||
def _start_logging(self): | def _start_logging(self): | ||||
# Add logger and logging handlers | # Add logger and logging handlers | ||||
self.log = logging.getLogger('TestFramework') | self.log = logging.getLogger('TestFramework') | ||||
▲ Show 20 Lines • Show All 171 Lines • Show Last 20 Lines |