diff options
author | John Newbery <john@johnnewbery.com> | 2017-06-02 14:30:36 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2017-08-15 13:12:15 -0400 |
commit | 7897338918dac072e788b8ab2919d4559f311bef (patch) | |
tree | e514317914448eaf783a2b5b980ba9339895bbdb /test/functional/bumpfee.py | |
parent | e526ca6284b9e13be1b912b80dd73a34e739b539 (diff) |
[tests] Introduce TestNode
TestNode is a class responsible for all state related to a bitcoind node
under test. It stores local state, is responsible for tracking the
bitcoind process and delegates unrecognised messages to the RPC
connection.
This commit changes start_nodes and stop_nodes to start and stop the
bitcoind nodes in parallel, making test setup and teardown much faster.
Diffstat (limited to 'test/functional/bumpfee.py')
-rwxr-xr-x | test/functional/bumpfee.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/bumpfee.py b/test/functional/bumpfee.py index 9237f09240..3c488f609a 100755 --- a/test/functional/bumpfee.py +++ b/test/functional/bumpfee.py @@ -41,8 +41,7 @@ class BumpFeeTest(BitcoinTestFramework): self.nodes = self.start_nodes(self.num_nodes, self.options.tmpdir, extra_args) # Encrypt wallet for test_locked_wallet_fails test - self.nodes[1].encryptwallet(WALLET_PASSPHRASE) - self.bitcoind_processes[1].wait() + self.nodes[1].node_encrypt_wallet(WALLET_PASSPHRASE) self.nodes[1] = self.start_node(1, self.options.tmpdir, extra_args[1]) self.nodes[1].walletpassphrase(WALLET_PASSPHRASE, WALLET_PASSPHRASE_TIMEOUT) |