mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
Merge #16888: test: Bump timeouts in slow running tests
fa502cb6f07f9a0c170185b760e3e349c6dac5f8 test: Bump timeouts in slow running tests (MarcoFalke)
Pull request description:
Fixes #16794
ACKs for top commit:
jamesob:
ACK fa502cb6f0
Tree-SHA512: 52d1a6f9febe066332cc9df40638fdc3e8aaf1990caf912073b42f2f6615879da5512533ff71b85b4865034bc30da46945d34916669068e004e68058aeb04e90
This commit is contained in:
parent
bff9273316
commit
2d114eec1e
@ -40,7 +40,7 @@ from test_framework.messages import (
|
|||||||
CTxIn,
|
CTxIn,
|
||||||
CTxOut,
|
CTxOut,
|
||||||
msg_block,
|
msg_block,
|
||||||
msg_headers
|
msg_headers,
|
||||||
)
|
)
|
||||||
from test_framework.mininode import P2PInterface
|
from test_framework.mininode import P2PInterface
|
||||||
from test_framework.script import (CScript, OP_TRUE)
|
from test_framework.script import (CScript, OP_TRUE)
|
||||||
@ -190,7 +190,7 @@ class AssumeValidTest(BitcoinTestFramework):
|
|||||||
for i in range(200):
|
for i in range(200):
|
||||||
p2p1.send_message(msg_block(self.blocks[i]))
|
p2p1.send_message(msg_block(self.blocks[i]))
|
||||||
# Syncing so many blocks can take a while on slow systems. Give it plenty of time to sync.
|
# Syncing so many blocks can take a while on slow systems. Give it plenty of time to sync.
|
||||||
p2p1.sync_with_ping(300)
|
p2p1.sync_with_ping(960)
|
||||||
assert_equal(self.nodes[1].getblock(self.nodes[1].getbestblockhash())['height'], 200)
|
assert_equal(self.nodes[1].getblock(self.nodes[1].getbestblockhash())['height'], 200)
|
||||||
|
|
||||||
# Send blocks to node2. Block 102 will be rejected.
|
# Send blocks to node2. Block 102 will be rejected.
|
||||||
|
@ -50,7 +50,7 @@ class ChainstateWriteCrashTest(BitcoinTestFramework):
|
|||||||
def set_test_params(self):
|
def set_test_params(self):
|
||||||
self.num_nodes = 4
|
self.num_nodes = 4
|
||||||
self.setup_clean_chain = False
|
self.setup_clean_chain = False
|
||||||
self.rpc_timeout = 180
|
self.rpc_timeout = 480
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -85,6 +85,7 @@ class PruneTest(BitcoinTestFramework):
|
|||||||
["-dip3params=2000:2000", "-dip8params=2000", "-disablegovernance","-txindex=0","-maxreceivebuffer=20000","-blockmaxsize=999000"],
|
["-dip3params=2000:2000", "-dip8params=2000", "-disablegovernance","-txindex=0","-maxreceivebuffer=20000","-blockmaxsize=999000"],
|
||||||
["-dip3params=2000:2000", "-dip8params=2000", "-disablegovernance","-txindex=0","-prune=550"],
|
["-dip3params=2000:2000", "-dip8params=2000", "-disablegovernance","-txindex=0","-prune=550"],
|
||||||
]
|
]
|
||||||
|
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()
|
||||||
|
@ -81,7 +81,7 @@ class InvalidMessagesTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
# Peer 1, despite serving up a bunch of nonsense, should still be connected.
|
# Peer 1, despite serving up a bunch of nonsense, should still be connected.
|
||||||
self.log.info("Waiting for node to drop junk messages.")
|
self.log.info("Waiting for node to drop junk messages.")
|
||||||
node.p2p.sync_with_ping(timeout=30)
|
node.p2p.sync_with_ping(timeout=320)
|
||||||
assert node.p2p.is_connected
|
assert node.p2p.is_connected
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -19,6 +19,7 @@ class ToolWalletTest(BitcoinTestFramework):
|
|||||||
def set_test_params(self):
|
def set_test_params(self):
|
||||||
self.num_nodes = 1
|
self.num_nodes = 1
|
||||||
self.setup_clean_chain = True
|
self.setup_clean_chain = True
|
||||||
|
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()
|
||||||
|
@ -44,6 +44,7 @@ class WalletBackupTest(BitcoinTestFramework):
|
|||||||
self.setup_clean_chain = True
|
self.setup_clean_chain = True
|
||||||
# nodes 1, 2,3 are spenders, let's give them a keypool=100
|
# nodes 1, 2,3 are spenders, let's give them a keypool=100
|
||||||
self.extra_args = [["-keypool=100"], ["-keypool=100"], ["-keypool=100"], []]
|
self.extra_args = [["-keypool=100"], ["-keypool=100"], ["-keypool=100"], []]
|
||||||
|
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 New Issue
Block a user