Skip to content

Commit 75e752f

Browse files
author
MarcoFalke
committed
Merge bitcoin/bitcoin#26954: test: Avoid rpc timeout in p2p_headers_sync_with_minchainwork
fa952fa test: Avoid rpc timeout in p2p_headers_sync_with_minchainwork (MarcoFalke) Pull request description: When running a lot of tests in parallel, I get `JSONRPCException: 'generatetoaddress' RPC took longer than 30.000000 seconds.` The general recommendation, if running into timeouts, is to increase the `--timeout-factor`. However, I think that the default timeout values should be suitable to run the tests out of the box on reasonable hardware. ACKs for top commit: fanquake: ACK fa952fa Tree-SHA512: b7eeda54f8db900f077417c0431f659c67e686e2fc078f8c713e37ed75b8bc862814ce20e8400741638e35e224d7284ad16172bf5f82168f803376d0c9ec4524
2 parents fcff639 + fa952fa commit 75e752f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/functional/p2p_headers_sync_with_minchainwork.py

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
class RejectLowDifficultyHeadersTest(BitcoinTestFramework):
2929
def set_test_params(self):
30+
self.rpc_timeout *= 4 # To avoid timeout when generating BLOCKS_TO_MINE
3031
self.setup_clean_chain = True
3132
self.num_nodes = 4
3233
# Node0 has no required chainwork; node1 requires 15 blocks on top of the genesis block; node2 requires 2047

0 commit comments

Comments
 (0)