Skip to content

test: use dynamic port allocation in proxy tests - #34186

Merged
achow101 merged 1 commit into
bitcoin:masterfrom
w0xlt:test_dynamic_port_allocation
Jan 14, 2026
Merged

achow101 merged 1 commit into
bitcoin:masterfrom
w0xlt:test_dynamic_port_allocation

Conversation

@w0xlt

@w0xlt w0xlt commented Dec 31, 2025

Copy link
Copy Markdown
Contributor

Use port=0 for dynamic port allocation in test framework components to avoid intermittent "address already in use" errors when running tests concurrently or when ports are stuck in TIME_WAIT state. Example: #29415 (comment)

Changes:

  • Update socks5.py and p2p.py to support dynamic port allocation
  • Convert feature_proxy.py and feature_anchors.py to use port=0

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants