diff options
author | John Newbery <john@johnnewbery.com> | 2017-03-23 23:56:31 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2017-05-31 16:59:38 -0400 |
commit | d8c218f9c268b00ed9bb8e7ee00e980a0fa326de (patch) | |
tree | 23f699605512b7d3c643461b8939724edc3850e8 /test/functional/zapwallettxes.py | |
parent | c1c9a95379d364ea8ca5d3d0789e8afb1a99bb8b (diff) |
[tests] Functional tests call self.start_node(s) and self.stop_node(s)
This commit changes the individual test scripts to call the
start_node(s) and stop_node(s) methods in BitcoinTestFramework.
Diffstat (limited to 'test/functional/zapwallettxes.py')
-rwxr-xr-x | test/functional/zapwallettxes.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/functional/zapwallettxes.py b/test/functional/zapwallettxes.py index 7987edeb54..a8600e82f6 100755 --- a/test/functional/zapwallettxes.py +++ b/test/functional/zapwallettxes.py @@ -58,18 +58,16 @@ class ZapWalletTXesTest (BitcoinTestFramework): assert_equal(tx3['txid'], txid3) #tx3 must be available (unconfirmed) #restart bitcoind - self.nodes[0].stop() - bitcoind_processes[0].wait() - self.nodes[0] = start_node(0,self.options.tmpdir) + self.stop_node(0) + self.nodes[0] = self.start_node(0,self.options.tmpdir) tx3 = self.nodes[0].gettransaction(txid3) assert_equal(tx3['txid'], txid3) #tx must be available (unconfirmed) - self.nodes[0].stop() - bitcoind_processes[0].wait() + self.stop_node(0) #restart bitcoind with zapwallettxes - self.nodes[0] = start_node(0,self.options.tmpdir, ["-zapwallettxes=1"]) + self.nodes[0] = self.start_node(0,self.options.tmpdir, ["-zapwallettxes=1"]) assert_raises(JSONRPCException, self.nodes[0].gettransaction, [txid3]) #there must be a expection because the unconfirmed wallettx0 must be gone by now |