Skip to content

Commit

Permalink
test: Bump timeouts to avoid valgrind failures
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Mar 15, 2020
1 parent e2d3663 commit fa19295
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 1 addition & 2 deletions test/functional/feature_dersig.py
Expand Up @@ -36,7 +36,6 @@ def unDERify(tx):
tx.vin[0].scriptSig = CScript(newscript)



class BIP66Test(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 1
Expand All @@ -45,7 +44,7 @@ def set_test_params(self):
'-par=1', # Use only one script thread to get the exact log msg for testing
]]
self.setup_clean_chain = True
self.rpc_timeout = 120
self.rpc_timeout = 240

def skip_test_if_missing_module(self):
self.skip_if_no_wallet()
Expand Down
5 changes: 3 additions & 2 deletions test/functional/mempool_reorg.py
Expand Up @@ -76,7 +76,7 @@ def run_test(self):
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(timeout=360)
self.sync_all(timeout=720)

assert_equal(set(self.nodes[0].getrawmempool()), {spend_101_id, spend_102_1_id, timelock_tx_id})

Expand All @@ -91,10 +91,11 @@ def run_test(self):
for node in self.nodes:
node.invalidateblock(new_blocks[0])

self.sync_all(timeout=360)
self.sync_all(timeout=720)

# mempool should be empty.
assert_equal(set(self.nodes[0].getrawmempool()), set())


if __name__ == '__main__':
MempoolCoinbaseTest().main()
6 changes: 4 additions & 2 deletions test/functional/wallet_groups.py
Expand Up @@ -11,12 +11,13 @@
assert_equal,
)


class WalletGroupTest(BitcoinTestFramework):
def set_test_params(self):
self.setup_clean_chain = True
self.num_nodes = 3
self.extra_args = [[], [], ['-avoidpartialspends']]
self.rpc_timeout = 240
self.rpc_timeout = 480

def skip_test_if_missing_module(self):
self.skip_if_no_wallet()
Expand Down Expand Up @@ -87,5 +88,6 @@ def run_test(self):
# is way too big.
assert self.nodes[2].sendtoaddress(address=addr2[0], amount=5)


if __name__ == '__main__':
WalletGroupTest().main ()
WalletGroupTest().main()
1 change: 1 addition & 0 deletions test/functional/wallet_multiwallet.py
Expand Up @@ -24,6 +24,7 @@ class MultiWalletTest(BitcoinTestFramework):
def set_test_params(self):
self.setup_clean_chain = True
self.num_nodes = 2
self.rpc_timeout = 120

def skip_test_if_missing_module(self):
self.skip_if_no_wallet()
Expand Down

0 comments on commit fa19295

Please sign in to comment.