diff options
author | John Newbery <john@johnnewbery.com> | 2018-02-07 09:22:58 -0500 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2018-03-19 14:58:00 -0400 |
commit | 728667b771e80388812d521eca03682c9366ce4b (patch) | |
tree | 0f0be9bb146364d2fd94251636cbae6ffade5c22 /test/functional/p2p_feefilter.py | |
parent | ee7b67e2784a5f08dffa6b05cee0e64c53a693c8 (diff) | |
download | bitcoin-728667b771e80388812d521eca03682c9366ce4b.tar.xz |
scripted-diff: rename TestNode to TestP2PConn in tests
Several test scripts define a subclass of P2PInterface called TestNode.
This commit renames those to TestP2PConn since we already have a
TestNode class in the test framework.
-BEGIN VERIFY SCRIPT-
sed -i s/TestNode/TestP2PConn/ test/functional/*py test/functional/test_framework/comptool.py
_END VERIFY SCRIPT-
Diffstat (limited to 'test/functional/p2p_feefilter.py')
-rwxr-xr-x | test/functional/p2p_feefilter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/p2p_feefilter.py b/test/functional/p2p_feefilter.py index 47d9c55160..7c954cdca2 100755 --- a/test/functional/p2p_feefilter.py +++ b/test/functional/p2p_feefilter.py @@ -22,7 +22,7 @@ def allInvsMatch(invsExpected, testnode): time.sleep(1) return False -class TestNode(P2PInterface): +class TestP2PConn(P2PInterface): def __init__(self): super().__init__() self.txinvs = [] @@ -48,7 +48,7 @@ class FeeFilterTest(BitcoinTestFramework): sync_blocks(self.nodes) # Setup the p2p connections and start up the network thread. - self.nodes[0].add_p2p_connection(TestNode()) + self.nodes[0].add_p2p_connection(TestP2PConn()) network_thread_start() self.nodes[0].p2p.wait_for_verack() |