HomePhabricator

test: remove copy-pasted tip() function when unused

Description

test: remove copy-pasted tip() function when unused

Summary:
Remove the tip() function in abc_ tests when it is unused or used only once (set the attribute directly).

When the function is used multiple times in a test, make it a method and rename it to set_tip().

Test Plan: test/functional/test_runner.py abc*

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
PiRKAuthored on Oct 11 2021, 07:47
PiRKPushed on Oct 11 2021, 19:45
Reviewer
Restricted Project
Differential Revision
D10297: test: remove copy-pasted tip() function when unused
Parents
rABCb6a9cbeec929: Refactor p2p_getaddr_caching.py
Branches
Unknown
Tags
Unknown