mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
bump test timeouts so that functional tests run in valgrind
This commit is contained in:
parent
6fef85bfa3
commit
2d23082cbe
9 changed files with 22 additions and 9 deletions
|
@ -184,3 +184,16 @@
|
|||
...
|
||||
fun:_ZN5BCLog6Logger12StartLoggingEv
|
||||
}
|
||||
{
|
||||
Suppress BCLog::Logger::StartLogging() still reachable memory warning
|
||||
Memcheck:Leak
|
||||
match-leak-kinds: reachable
|
||||
fun:malloc
|
||||
...
|
||||
fun:_ZN5BCLog6Logger12StartLoggingEv
|
||||
}
|
||||
{
|
||||
Suppress rest_blockhash_by_height Conditional jump or move depends on uninitialised value(s)
|
||||
Memcheck:Cond
|
||||
fun:_ZL24rest_blockhash_by_heightP11HTTPRequestRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ class AbortNodeTest(BitcoinTestFramework):
|
|||
|
||||
# Check that node0 aborted
|
||||
self.log.info("Waiting for crash")
|
||||
wait_until(lambda: self.nodes[0].is_node_stopped(), timeout=60)
|
||||
wait_until(lambda: self.nodes[0].is_node_stopped(), timeout=200)
|
||||
self.log.info("Node crashed - now verifying restart fails")
|
||||
self.nodes[0].assert_start_raises_init_error()
|
||||
|
||||
|
|
|
@ -1401,7 +1401,7 @@ class FullBlockTest(BitcoinTestFramework):
|
|||
self.nodes[0].disconnect_p2ps()
|
||||
self.bootstrap_p2p(timeout=timeout)
|
||||
|
||||
def send_blocks(self, blocks, success=True, reject_reason=None, force_send=False, reconnect=False, timeout=60):
|
||||
def send_blocks(self, blocks, success=True, reject_reason=None, force_send=False, reconnect=False, timeout=960):
|
||||
"""Sends blocks to test node. Syncs and verifies that tip has advanced to most recent block.
|
||||
|
||||
Call with success = False if the tip shouldn't advance to the most recent block."""
|
||||
|
|
|
@ -17,7 +17,7 @@ class HelpTest(BitcoinTestFramework):
|
|||
# Don't start the node
|
||||
|
||||
def get_node_output(self, *, ret_code_expected):
|
||||
ret_code = self.nodes[0].process.wait(timeout=5)
|
||||
ret_code = self.nodes[0].process.wait(timeout=60)
|
||||
assert_equal(ret_code, ret_code_expected)
|
||||
self.nodes[0].stdout.seek(0)
|
||||
self.nodes[0].stderr.seek(0)
|
||||
|
|
|
@ -76,7 +76,7 @@ class MempoolCoinbaseTest(BitcoinTestFramework):
|
|||
spend_101_id = self.nodes[0].sendrawtransaction(spend_101_raw)
|
||||
spend_102_1_id = self.nodes[0].sendrawtransaction(spend_102_1_raw)
|
||||
|
||||
self.sync_all()
|
||||
self.sync_all(timeout=360)
|
||||
|
||||
assert_equal(set(self.nodes[0].getrawmempool()), {spend_101_id, spend_102_1_id, timelock_tx_id})
|
||||
|
||||
|
@ -91,7 +91,7 @@ class MempoolCoinbaseTest(BitcoinTestFramework):
|
|||
for node in self.nodes:
|
||||
node.invalidateblock(new_blocks[0])
|
||||
|
||||
self.sync_all()
|
||||
self.sync_all(timeout=360)
|
||||
|
||||
# mempool should be empty.
|
||||
assert_equal(set(self.nodes[0].getrawmempool()), set())
|
||||
|
|
|
@ -78,7 +78,7 @@ class InvalidMessagesTest(BitcoinTestFramework):
|
|||
|
||||
# Peer 1, despite serving up a bunch of nonsense, should still be connected.
|
||||
self.log.info("Waiting for node to drop junk messages.")
|
||||
node.p2p.sync_with_ping(timeout=320)
|
||||
node.p2p.sync_with_ping(timeout=400)
|
||||
assert node.p2p.is_connected
|
||||
|
||||
#
|
||||
|
|
|
@ -26,7 +26,7 @@ class SetBanTests(BitcoinTestFramework):
|
|||
self.nodes[1].setban("127.0.0.1", "add")
|
||||
|
||||
# Node 0 should not be able to reconnect
|
||||
with self.nodes[1].assert_debug_log(expected_msgs=['dropped (banned)\n'], timeout=5):
|
||||
with self.nodes[1].assert_debug_log(expected_msgs=['dropped (banned)\n'], timeout=50):
|
||||
self.restart_node(1, [])
|
||||
self.nodes[0].addnode("127.0.0.1:" + str(p2p_port(1)), "onetry")
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ class WalletDumpTest(BitcoinTestFramework):
|
|||
|
||||
# encrypt wallet, restart, unlock and dump
|
||||
self.nodes[0].encryptwallet('test')
|
||||
self.nodes[0].walletpassphrase('test', 10)
|
||||
self.nodes[0].walletpassphrase('test', 100)
|
||||
# Should be a no-op:
|
||||
self.nodes[0].keypoolrefill()
|
||||
self.nodes[0].dumpwallet(wallet_enc_dump)
|
||||
|
|
|
@ -16,7 +16,7 @@ class WalletGroupTest(BitcoinTestFramework):
|
|||
self.setup_clean_chain = True
|
||||
self.num_nodes = 3
|
||||
self.extra_args = [[], [], ['-avoidpartialspends']]
|
||||
self.rpc_timeout = 120
|
||||
self.rpc_timeout = 240
|
||||
|
||||
def skip_test_if_missing_module(self):
|
||||
self.skip_if_no_wallet()
|
||||
|
|
Loading…
Reference in a new issue