HomePhabricator

[avalanche] Add a facility for managing the command line options in the…

Description

[avalanche] Add a facility for managing the command line options in the processor tests

Summary:
Some tests use a local ArgsManager, some use the global gArgs, some clear them after the test and some don't.
Let's clean this up and remove some boilerplate by consistently using m_node.args, and provide a facility that ensure all args are cleared after each test case.

Depends on D13005.

Test Plan:

ninja check-avalanche

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
FabienAuthored on Jan 19 2023, 15:51
FabienPushed on Jan 20 2023, 14:36
Reviewer
Restricted Project
Differential Revision
D13011: [avalanche] Add a facility for managing the command line options in the processor tests
Parents
rABC39cb578201e3: [avalanche] Processor event loop: make sure we test what we expect
Branches
Unknown
Tags
Unknown