HomePhabricator

[tests] Introduce TestNode

Description

[tests] Introduce TestNode

Summary:
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.

Backport core's PR10711, PR11091 and PR11077

Test Plan:

make check
./test/functional/test_runner.py --extended

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Subscribers: teamcity

Differential Revision: https://reviews.bitcoinabc.org/D1037

Details

Provenance
John Newbery <john@johnnewbery.com>Authored on Jun 2 2017, 18:30
deadalnixCommitted on Jan 26 2018, 21:33
deadalnixPushed on Jan 26 2018, 22:02
Reviewer
Restricted Project
Differential Revision
D1037: [tests] Introduce TestNode
Parents
rSTAGING68e8305a5983: Fix multiwallet test to look for proper jsonrpc text
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/2748, tag: phabricator/base/2747, tag: phabricator/base/2746

Event Timeline