mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-01 16:31:33 +01:00
test: refactor functional tests to use restart_node
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user