Page MenuHomePhabricator

test: Add tests for CNode::ConnectedThroughNetwork
ClosedPublic

Authored by PiRK on Nov 10 2021, 16:57.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC84b18a9f09ec: test: Add tests for CNode::ConnectedThroughNetwork
Summary

Note: I didn't backport the inline comments for argument names, because I don't think it is an improvement (my IDE already show the parameter names for literal parameters) and it will not help avoiding future merge conflicts (coding style incompatible with our linter and different signature for the CNode constructor)

This is a backport of core#19998 [3/3]
https://github.com/bitcoin/bitcoin/pull/19998/commits/3984b78cd7f49e409377f2175a56e8e4bd71d1d8

Depends on D10457

Test Plan

ninja check

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Nov 10 2021, 16:57
majcosta added a subscriber: majcosta.
majcosta added inline comments.
src/test/net_tests.cpp
230 ↗(On Diff #30829)

well, if you're gonna deduce pnode3's type, might as well do it for pnode4 too

This revision is now accepted and ready to land.Nov 11 2021, 19:20

use auto for pnode4 too