Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/test_framework.py
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | def __init__(self): | ||||
self.chain = 'regtest' | self.chain = 'regtest' | ||||
self.setup_clean_chain = False | self.setup_clean_chain = False | ||||
self.nodes = [] | self.nodes = [] | ||||
self.network_thread = None | self.network_thread = None | ||||
# Wait for up to 60 seconds for the RPC server to respond | # Wait for up to 60 seconds for the RPC server to respond | ||||
self.rpc_timeout = 60 | self.rpc_timeout = 60 | ||||
self.supports_cli = True | self.supports_cli = True | ||||
self.bind_to_localhost_only = True | self.bind_to_localhost_only = True | ||||
self.default_wallet_name = "" | |||||
self.wallet_data_filename = "wallet.dat" | |||||
# We run parse_args before set_test_params for tests who need to | # We run parse_args before set_test_params for tests who need to | ||||
# know the parser options during setup. | # know the parser options during setup. | ||||
self.parse_args() | self.parse_args() | ||||
self.set_test_params() | self.set_test_params() | ||||
if self.options.timeout_factor == 0: | if self.options.timeout_factor == 0: | ||||
self.options.timeout_factor = 99999 | self.options.timeout_factor = 99999 | ||||
# optionally, increase timeout by a factor | # optionally, increase timeout by a factor | ||||
self.rpc_timeout = int(self.rpc_timeout * self.options.timeout_factor) | self.rpc_timeout = int(self.rpc_timeout * self.options.timeout_factor) | ||||
▲ Show 20 Lines • Show All 693 Lines • Show Last 20 Lines |