[tests] Introduce TestNode
commit7897338918dac072e788b8ab2919d4559f311bef
authorJohn Newbery <john@johnnewbery.com>
Fri, 2 Jun 2017 18:30:36 +0000 (2 14:30 -0400)
committerJohn Newbery <john@johnnewbery.com>
Tue, 15 Aug 2017 17:12:15 +0000 (15 13:12 -0400)
treee514317914448eaf783a2b5b980ba9339895bbdb
parente526ca6284b9e13be1b912b80dd73a34e739b539
[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.
12 files changed:
test/functional/blockchain.py
test/functional/bumpfee.py
test/functional/fundrawtransaction.py
test/functional/getblocktemplate_longpoll.py
test/functional/keypool.py
test/functional/multiwallet.py
test/functional/rpcbind_test.py
test/functional/test_framework/test_framework.py
test/functional/test_framework/test_node.py [new file with mode: 0755]
test/functional/test_framework/util.py
test/functional/wallet-dump.py
test/functional/wallet-encryption.py