mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-13 11:40:42 +02:00
Increase timeout of featuer_assumevalid test to fix flaky tests
This commit is contained in:
parent
aa9aca85f1
commit
b6f0db69a9
@ -180,7 +180,7 @@ class AssumeValidTest(BitcoinTestFramework):
|
|||||||
for i in range(2202):
|
for i in range(2202):
|
||||||
p2p1.send_message(msg_block(self.blocks[i]))
|
p2p1.send_message(msg_block(self.blocks[i]))
|
||||||
# Syncing 2200 blocks can take a while on slow systems. Give it plenty of time to sync.
|
# Syncing 2200 blocks can take a while on slow systems. Give it plenty of time to sync.
|
||||||
p2p1.sync_with_ping(120)
|
p2p1.sync_with_ping(150)
|
||||||
assert_equal(self.nodes[1].getblock(self.nodes[1].getbestblockhash())['height'], 2202)
|
assert_equal(self.nodes[1].getblock(self.nodes[1].getbestblockhash())['height'], 2202)
|
||||||
|
|
||||||
# Send blocks to node2. Block 102 will be rejected.
|
# Send blocks to node2. Block 102 will be rejected.
|
||||||
|
Loading…
Reference in New Issue
Block a user