scripted-diff: Rename rpc_timewait to rpc_timeout
-BEGIN VERIFY SCRIPT- sed -i -e 's/self.rpc_timewait/self.rpc_timeout/g' $(git grep -l self.rpc_timewait) -END VERIFY SCRIPT-
This commit is contained in:
parent
fa3e5786d0
commit
fa71b38168
4 changed files with 6 additions and 6 deletions
|
@ -46,7 +46,7 @@ class ChainstateWriteCrashTest(BitcoinTestFramework):
|
||||||
self.num_nodes = 4
|
self.num_nodes = 4
|
||||||
self.setup_clean_chain = False
|
self.setup_clean_chain = False
|
||||||
# Need a bit of extra time for the nodes to start up for this test
|
# Need a bit of extra time for the nodes to start up for this test
|
||||||
self.rpc_timewait = 90
|
self.rpc_timeout = 90
|
||||||
|
|
||||||
# Set -maxmempool=0 to turn off mempool memory sharing with dbcache
|
# Set -maxmempool=0 to turn off mempool memory sharing with dbcache
|
||||||
# Set -rpcservertimeout=900 to reduce socket disconnects in this
|
# Set -rpcservertimeout=900 to reduce socket disconnects in this
|
||||||
|
|
|
@ -29,7 +29,7 @@ class PruneTest(BitcoinTestFramework):
|
||||||
def set_test_params(self):
|
def set_test_params(self):
|
||||||
self.setup_clean_chain = True
|
self.setup_clean_chain = True
|
||||||
self.num_nodes = 6
|
self.num_nodes = 6
|
||||||
self.rpc_timewait = 900
|
self.rpc_timeout = 900
|
||||||
|
|
||||||
# Create nodes 0 and 1 to mine.
|
# Create nodes 0 and 1 to mine.
|
||||||
# Create node 2 to test pruning.
|
# Create node 2 to test pruning.
|
||||||
|
|
|
@ -95,7 +95,7 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
||||||
self.nodes = []
|
self.nodes = []
|
||||||
self.network_thread = None
|
self.network_thread = None
|
||||||
self.mocktime = 0
|
self.mocktime = 0
|
||||||
self.rpc_timewait = 60 # Wait for up to 60 seconds for the RPC server to respond
|
self.rpc_timeout = 60 # Wait for up to 60 seconds for the RPC server to respond
|
||||||
self.supports_cli = False
|
self.supports_cli = False
|
||||||
self.bind_to_localhost_only = True
|
self.bind_to_localhost_only = True
|
||||||
self.set_test_params()
|
self.set_test_params()
|
||||||
|
@ -301,7 +301,7 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
||||||
i,
|
i,
|
||||||
get_datadir_path(self.options.tmpdir, i),
|
get_datadir_path(self.options.tmpdir, i),
|
||||||
rpchost=rpchost,
|
rpchost=rpchost,
|
||||||
timewait=self.rpc_timewait,
|
timewait=self.rpc_timeout,
|
||||||
bitcoind=binary[i],
|
bitcoind=binary[i],
|
||||||
bitcoin_cli=self.options.bitcoincli,
|
bitcoin_cli=self.options.bitcoincli,
|
||||||
mocktime=self.mocktime,
|
mocktime=self.mocktime,
|
||||||
|
@ -460,7 +460,7 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
||||||
args = [self.options.bitcoind, "-datadir=" + datadir, '-disablewallet']
|
args = [self.options.bitcoind, "-datadir=" + datadir, '-disablewallet']
|
||||||
if i > 0:
|
if i > 0:
|
||||||
args.append("-connect=127.0.0.1:" + str(p2p_port(0)))
|
args.append("-connect=127.0.0.1:" + str(p2p_port(0)))
|
||||||
self.nodes.append(TestNode(i, get_datadir_path(self.options.cachedir, i), extra_conf=["bind=127.0.0.1"], extra_args=[], rpchost=None, timewait=self.rpc_timewait, bitcoind=self.options.bitcoind, bitcoin_cli=self.options.bitcoincli, mocktime=self.mocktime, coverage_dir=None))
|
self.nodes.append(TestNode(i, get_datadir_path(self.options.cachedir, i), extra_conf=["bind=127.0.0.1"], extra_args=[], rpchost=None, timewait=self.rpc_timeout, bitcoind=self.options.bitcoind, bitcoin_cli=self.options.bitcoincli, mocktime=self.mocktime, coverage_dir=None))
|
||||||
self.nodes[i].args = args
|
self.nodes[i].args = args
|
||||||
self.start_node(i)
|
self.start_node(i)
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ class WalletGroupTest(BitcoinTestFramework):
|
||||||
self.setup_clean_chain = True
|
self.setup_clean_chain = True
|
||||||
self.num_nodes = 3
|
self.num_nodes = 3
|
||||||
self.extra_args = [[], [], ['-avoidpartialspends']]
|
self.extra_args = [[], [], ['-avoidpartialspends']]
|
||||||
self.rpc_timewait = 120
|
self.rpc_timeout = 120
|
||||||
|
|
||||||
def skip_test_if_missing_module(self):
|
def skip_test_if_missing_module(self):
|
||||||
self.skip_if_no_wallet()
|
self.skip_if_no_wallet()
|
||||||
|
|
Loading…
Reference in a new issue