aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_loadblock.py
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@protonmail.com>2020-06-22 18:24:41 +0200
committerWladimir J. van der Laan <laanwj@protonmail.com>2020-06-22 18:27:28 +0200
commita6aac20019e5be671716a8032629fe33403896f3 (patch)
treec32b5c414176e7b0571b5f472a9ff31f658b35d6 /test/functional/feature_loadblock.py
parentf591a1a1842d82fbe8d9704cc296aee95f3a3616 (diff)
parent20b6e959449d0c07639599b99ba917d2cac62493 (diff)
downloadbitcoin-a6aac20019e5be671716a8032629fe33403896f3.tar.xz
Merge #19350: test: Refactor tests using restart_node
20b6e959449d0c07639599b99ba917d2cac62493 test: refactor functional tests to use restart_node (Christopher Coverdale) Pull request description: fixes #19345 This PR replaces consecutive calls to `stop_node()` and `start_node()` with `restart_node()` where appropriate in the functional tests. The commit messages are repetitive but focused on each file changed with the intention of squashing if applicable. ACKs for top commit: laanwj: ACK 20b6e959449d0c07639599b99ba917d2cac62493 Tree-SHA512: 1cfa1fb8c5f01a7b00fe44e80dbef072147f21e3891098817acd4275b0c5d91dc1c787594209e117edd418f2fa3a7b2dfcbafdf87efc07f740040938d641f3a9
Diffstat (limited to 'test/functional/feature_loadblock.py')
-rwxr-xr-xtest/functional/feature_loadblock.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/feature_loadblock.py b/test/functional/feature_loadblock.py
index 82f1331685..0a457ca17f 100755
--- a/test/functional/feature_loadblock.py
+++ b/test/functional/feature_loadblock.py
@@ -71,8 +71,7 @@ class LoadblockTest(BitcoinTestFramework):
check=True)
self.log.info("Restart second, unsynced node with bootstrap file")
- self.stop_node(1)
- self.start_node(1, ["-loadblock=" + bootstrap_file])
+ self.restart_node(1, extra_args=["-loadblock=" + bootstrap_file])
assert_equal(self.nodes[1].getblockcount(), 100) # start_node is blocking on all block files being imported
assert_equal(self.nodes[1].getblockchaininfo()['blocks'], 100)