Page MenuHomePhabricator

test: Move (dis)?connect_nodes globals into TestFramework
ClosedPublic

Authored by PiRK on Nov 26 2021, 13:39.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCd87a16fbc2d0: test: Move (dis)?connect_nodes globals into TestFramework
Summary

There is now only one callsite for these functions, so we can just move the code where it is needed.

I deviated from the original commit by not creating the ..._helper functions. It doesn't make much sense to define local functions that are used only once and immediately after being defined.

This is a backport of core#19967 [3/3]
https://github.com/bitcoin/bitcoin/pull/19967/commits/3c7d9ab8c8ec5284cdad1a53ee310b79b931f12f

Depends on D10558 and D10559

Test Plan

ninja check-functional-extended

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Nov 26 2021, 13:39

I forgot to remove the functions in util.py

This revision is now accepted and ready to land.Nov 29 2021, 08:44