Skip to content

test: listen_tests and connect_tests follow-ups - #344

Open
xyzconstant wants to merge 9 commits into
bitcoin-core:masterfrom
xyzconstant:listenconnections-and-connectstream-tests-follow-ups
Open

test: listen_tests and connect_tests follow-ups#344
xyzconstant wants to merge 9 commits into
bitcoin-core:masterfrom
xyzconstant:listenconnections-and-connectstream-tests-follow-ups

Conversation

@xyzconstant

Copy link
Copy Markdown
Contributor

Addresses review suggestions left (all of them made by @ryanofsky) in the now-merged PRs #298 and #310.

These are non-critical test cleanups (naming, simplification, comments, etc.) with zero changes to library code.

@DrahtBot

DrahtBot commented Aug 13, 2026

Copy link
Copy Markdown

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.

Use the existing `SocketPair()` helper directly in each test instead of the
`init_sockets` callback and fd members, which nothing else in the class used.
Move it to a common.h file. The connect_tests copy previously didn't log
messages, now it does through the shared version.
Unnecessary since the tests are inside the mp namespace.
The conditional served no purpose and leaked the descriptor when `recv()`
failed or returned zero.
@xyzconstant
xyzconstant force-pushed the listenconnections-and-connectstream-tests-follow-ups branch from 76ab72f to c39c785 Compare August 13, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants