Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Bump timeouts in slow running tests #16888

Merged
merged 1 commit into from
Sep 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/functional/feature_assumevalid.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
CTxIn,
CTxOut,
msg_block,
msg_headers
msg_headers,
)
from test_framework.mininode import P2PInterface
from test_framework.script import (CScript, OP_TRUE)
Expand Down Expand Up @@ -180,7 +180,7 @@ def run_test(self):
for i in range(2202):
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.
p2p1.sync_with_ping(200)
p2p1.sync_with_ping(960)
assert_equal(self.nodes[1].getblock(self.nodes[1].getbestblockhash())['height'], 2202)

# Send blocks to node2. Block 102 will be rejected.
Expand Down
6 changes: 3 additions & 3 deletions test/functional/feature_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ def run_test(self):
self.save_spendable_output()
spend = self.get_spendable_output()

self.send_blocks(blocks, True, timeout=480)
self.send_blocks(blocks, True, timeout=960)
chain1_tip = i

# now create alt chain of same length
Expand All @@ -1273,14 +1273,14 @@ def run_test(self):

# extend alt chain to trigger re-org
block = self.next_block("alt" + str(chain1_tip + 1), version=4)
self.send_blocks([block], True, timeout=480)
self.send_blocks([block], True, timeout=960)

# ... and re-org back to the first chain
self.move_tip(chain1_tip)
block = self.next_block(chain1_tip + 1, version=4)
self.send_blocks([block], False, force_send=True)
block = self.next_block(chain1_tip + 2, version=4)
self.send_blocks([block], True, timeout=480)
self.send_blocks([block], True, timeout=960)

self.log.info("Reject a block with an invalid block header version")
b_v1 = self.next_block('b_v1', version=1)
Expand Down
2 changes: 1 addition & 1 deletion test/functional/feature_dbcrash.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ChainstateWriteCrashTest(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 4
self.setup_clean_chain = False
self.rpc_timeout = 180
self.rpc_timeout = 480

# Set -maxmempool=0 to turn off mempool memory sharing with dbcache
# Set -rpcservertimeout=900 to reduce socket disconnects in this
Expand Down
1 change: 1 addition & 0 deletions test/functional/feature_pruning.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def set_test_params(self):
["-maxreceivebuffer=20000"],
["-prune=550"],
]
self.rpc_timeout = 120

def skip_test_if_missing_module(self):
self.skip_if_no_wallet()
Expand Down
2 changes: 1 addition & 1 deletion test/functional/p2p_invalid_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def run_test(self):

# Peer 1, despite serving up a bunch of nonsense, should still be connected.
self.log.info("Waiting for node to drop junk messages.")
node.p2p.sync_with_ping(timeout=120)
node.p2p.sync_with_ping(timeout=320)
assert node.p2p.is_connected

#
Expand Down
1 change: 1 addition & 0 deletions test/functional/tool_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class ToolWalletTest(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 1
self.setup_clean_chain = True
self.rpc_timeout = 120

def skip_test_if_missing_module(self):
self.skip_if_no_wallet()
Expand Down
1 change: 1 addition & 0 deletions test/functional/wallet_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def set_test_params(self):
self.setup_clean_chain = True
# nodes 1, 2,3 are spenders, let's give them a keypool=100
self.extra_args = [["-keypool=100"], ["-keypool=100"], ["-keypool=100"], []]
self.rpc_timeout = 120

def skip_test_if_missing_module(self):
self.skip_if_no_wallet()
Expand Down