test: refactor functional tests to use restart_node

This commit is contained in:
Christopher Coverdale
2020-06-21 23:32:32 +01:00
parent 8ef15e8a86
commit 20b6e95944
13 changed files with 25 additions and 48 deletions

View File

@ -190,8 +190,7 @@ class WalletDumpTest(BitcoinTestFramework):
assert_raises_rpc_error(-8, "already exists", lambda: self.nodes[0].dumpwallet(wallet_enc_dump))
# Restart node with new wallet, and test importwallet
self.stop_node(0)
self.start_node(0, ['-wallet=w2'])
self.restart_node(0, ['-wallet=w2'])
# Make sure the address is not IsMine before import
result = self.nodes[0].getaddressinfo(multisig_addr)