Skip to content

Commit fa92af5

Browse files
author
MarcoFalke
committed
ci: Run feature_block and feature_abortnode in valgrind
1 parent fa01feb commit fa92af5

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

ci/test/00_setup_env_native_valgrind.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export CONTAINER_NAME=ci_native_valgrind
1010
export PACKAGES="valgrind clang llvm python3-zmq libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev"
1111
export USE_VALGRIND=1
1212
export NO_DEPENDS=1
13-
export TEST_RUNNER_EXTRA="--exclude feature_abortnode,feature_block,rpc_bind" # Excluded for now
14-
export RUN_FUNCTIONAL_TESTS=true
13+
export TEST_RUNNER_EXTRA="--exclude rpc_bind" # Excluded for now, see https://github.com/bitcoin/bitcoin/issues/17765#issuecomment-602068547
1514
export GOAL="install"
1615
export BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --with-gui=no CC=clang CXX=clang++" # TODO enable GUI

test/functional/feature_abortnode.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414
from test_framework.util import wait_until, get_datadir_path, connect_nodes
1515
import os
1616

17-
class AbortNodeTest(BitcoinTestFramework):
1817

18+
class AbortNodeTest(BitcoinTestFramework):
1919
def set_test_params(self):
2020
self.setup_clean_chain = True
2121
self.num_nodes = 2
22+
self.rpc_timeout = 240
2223

2324
def setup_network(self):
2425
self.setup_nodes()
@@ -44,5 +45,6 @@ def run_test(self):
4445
self.log.info("Node crashed - now verifying restart fails")
4546
self.nodes[0].assert_start_raises_init_error()
4647

48+
4749
if __name__ == '__main__':
4850
AbortNodeTest().main()

test/functional/feature_block.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ def run_test(self):
12631263
self.save_spendable_output()
12641264
spend = self.get_spendable_output()
12651265

1266-
self.send_blocks(blocks, True, timeout=1920)
1266+
self.send_blocks(blocks, True, timeout=2440)
12671267
chain1_tip = i
12681268

12691269
# now create alt chain of same length
@@ -1275,14 +1275,14 @@ def run_test(self):
12751275

12761276
# extend alt chain to trigger re-org
12771277
block = self.next_block("alt" + str(chain1_tip + 1), version=4)
1278-
self.send_blocks([block], True, timeout=1920)
1278+
self.send_blocks([block], True, timeout=2440)
12791279

12801280
# ... and re-org back to the first chain
12811281
self.move_tip(chain1_tip)
12821282
block = self.next_block(chain1_tip + 1, version=4)
12831283
self.send_blocks([block], False, force_send=True)
12841284
block = self.next_block(chain1_tip + 2, version=4)
1285-
self.send_blocks([block], True, timeout=1920)
1285+
self.send_blocks([block], True, timeout=2440)
12861286

12871287
self.log.info("Reject a block with an invalid block header version")
12881288
b_v1 = self.next_block('b_v1', version=1)

0 commit comments

Comments
 (0)