ci: fix some test timeouts

This commit is contained in:
Andrew Poelstra 2021-03-31 23:01:22 +00:00
parent f994740dd1
commit f76fe5e469
3 changed files with 7 additions and 4 deletions

View file

@ -122,7 +122,7 @@ class DynaFedTest(BitcoinTestFramework):
# Move chain forward to activation, any new blocks will be enforced
blocks += self.nodes[0].generatetoaddress(144, self.nodes[0].getnewaddress())
self.sync_all()
self.sync_blocks(timeout=240)
assert_equal(self.nodes[0].getblockchaininfo()["softforks"]["dynafed"]["bip9"]["status"], "active")
# Existing blocks should have null dynafed fields

View file

@ -188,7 +188,10 @@ class SighashRangeproofTest(BitcoinTestFramework):
self.assert_tx_valid(tx, True)
# Activate dynafed (nb of blocks taken from dynafed activation test)
self.nodes[0].generate(1006 + 1 + 144 + 144)
# Generate acress several calls to `generatetoaddress` to ensure no individual call times out
self.nodes[0].generate(503)
self.nodes[0].generate(503)
self.nodes[0].generate(1 + 144 + 144)
assert_equal(self.nodes[0].getblockchaininfo()["softforks"]["dynafed"]["bip9"]["status"], "active")
self.sync_all()

View file

@ -91,6 +91,8 @@ BASE_SCRIPTS = [
'feature_fedpeg.py --pre_transition',
'feature_fedpeg.py --post_transition',
'feature_mandatory_coinbase.py',
'feature_dynafed.py',
'feature_sighash_rangeproof.py',
'feature_block_subsidy.py',
'feature_connect_genesis_outputs.py',
'feature_block_v4.py',
@ -105,8 +107,6 @@ BASE_SCRIPTS = [
'feature_assetsdir.py',
'feature_initial_reissuance_token.py',
'feature_progress.py',
'feature_dynafed.py',
'feature_sighash_rangeproof.py',
# Longest test should go first, to favor running tests in parallel
'wallet_hd.py',
'wallet_hd.py --descriptors',