mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-13 10:21:34 +02:00
test: Bump timeouts to accomodate really slow disks
This commit is contained in:
parent
ac5c5d0162
commit
fa6df0de53
@ -1261,7 +1261,7 @@ class FullBlockTest(BitcoinTestFramework):
|
|||||||
self.save_spendable_output()
|
self.save_spendable_output()
|
||||||
spend = self.get_spendable_output()
|
spend = self.get_spendable_output()
|
||||||
|
|
||||||
self.send_blocks(blocks, True, timeout=960)
|
self.send_blocks(blocks, True, timeout=1920)
|
||||||
chain1_tip = i
|
chain1_tip = i
|
||||||
|
|
||||||
# now create alt chain of same length
|
# now create alt chain of same length
|
||||||
@ -1273,14 +1273,14 @@ class FullBlockTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
# extend alt chain to trigger re-org
|
# extend alt chain to trigger re-org
|
||||||
block = self.next_block("alt" + str(chain1_tip + 1), version=4)
|
block = self.next_block("alt" + str(chain1_tip + 1), version=4)
|
||||||
self.send_blocks([block], True, timeout=960)
|
self.send_blocks([block], True, timeout=1920)
|
||||||
|
|
||||||
# ... and re-org back to the first chain
|
# ... and re-org back to the first chain
|
||||||
self.move_tip(chain1_tip)
|
self.move_tip(chain1_tip)
|
||||||
block = self.next_block(chain1_tip + 1, version=4)
|
block = self.next_block(chain1_tip + 1, version=4)
|
||||||
self.send_blocks([block], False, force_send=True)
|
self.send_blocks([block], False, force_send=True)
|
||||||
block = self.next_block(chain1_tip + 2, version=4)
|
block = self.next_block(chain1_tip + 2, version=4)
|
||||||
self.send_blocks([block], True, timeout=960)
|
self.send_blocks([block], True, timeout=1920)
|
||||||
|
|
||||||
self.log.info("Reject a block with an invalid block header version")
|
self.log.info("Reject a block with an invalid block header version")
|
||||||
b_v1 = self.next_block('b_v1', version=1)
|
b_v1 = self.next_block('b_v1', version=1)
|
||||||
|
@ -134,7 +134,7 @@ def main():
|
|||||||
os.path.join(config["environment"]["BUILDDIR"], 'src', 'test', 'fuzz', test_list_selection[0]),
|
os.path.join(config["environment"]["BUILDDIR"], 'src', 'test', 'fuzz', test_list_selection[0]),
|
||||||
'-help=1',
|
'-help=1',
|
||||||
],
|
],
|
||||||
timeout=10,
|
timeout=20,
|
||||||
check=True,
|
check=True,
|
||||||
stderr=subprocess.PIPE,
|
stderr=subprocess.PIPE,
|
||||||
universal_newlines=True,
|
universal_newlines=True,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user