Page MenuHomePhabricator

[tests] Add p2p connection to TestNode
ClosedPublic

Authored by Fabien on Jan 16 2019, 15:29.

Details

Summary

Partial backport of core PR11182
(commits 5e5725c and b86c1cd)

p2p connections can now be added to TestNode instances.

This commit also updates the example test to use the new
p2p interface in TestNode to demonstrate usage.

A future commit will update the existing tests to use p2p through the
TestNode.
Test Plan
./test/functional/test_runner.py example_test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
PR11182_part1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4546
Build 7155: Bitcoin ABC Buildbot (legacy)
Build 7154: arc lint + arc unit

Event Timeline

jasonbcox added a subscriber: jasonbcox.
jasonbcox added inline comments.
test/functional/test_framework/test_node.py
17

Looks like we may be missing some other backports, but since they aren't a direct dependency for these changes, I think we can move along.

This revision is now accepted and ready to land.Jan 17 2019, 00:20
This revision was automatically updated to reflect the committed changes.