mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-19 09:53:47 +01:00
test: Bump rpc timeout in feature_assumevalid to avoid valgrind timeouts
This commit is contained in:
parent
fa72d270ad
commit
fa9b3040e7
@ -47,16 +47,19 @@ from test_framework.script import (CScript, OP_TRUE)
|
||||
from test_framework.test_framework import BitcoinTestFramework
|
||||
from test_framework.util import assert_equal
|
||||
|
||||
|
||||
class BaseNode(P2PInterface):
|
||||
def send_header_for_blocks(self, new_blocks):
|
||||
headers_message = msg_headers()
|
||||
headers_message.headers = [CBlockHeader(b) for b in new_blocks]
|
||||
self.send_message(headers_message)
|
||||
|
||||
|
||||
class AssumeValidTest(BitcoinTestFramework):
|
||||
def set_test_params(self):
|
||||
self.setup_clean_chain = True
|
||||
self.num_nodes = 3
|
||||
self.rpc_timeout = 120
|
||||
|
||||
def setup_network(self):
|
||||
self.add_nodes(3)
|
||||
@ -187,5 +190,6 @@ class AssumeValidTest(BitcoinTestFramework):
|
||||
self.send_blocks_until_disconnected(p2p2)
|
||||
self.assert_blockchain_height(self.nodes[2], 101)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
AssumeValidTest().main()
|
||||
|
Loading…
Reference in New Issue
Block a user