Skip to content

tests: use reserve_unused_port() to fix port allocation flakiness#76

Merged
chrisguida merged 2 commits intomasterfrom
fix/port-allocation-flakiness
Jan 22, 2026
Merged

tests: use reserve_unused_port() to fix port allocation flakiness#76
chrisguida merged 2 commits intomasterfrom
fix/port-allocation-flakiness

Conversation

@chrisguida
Copy link
Owner

Replace custom get_free_port() with pyln.testing.utils.reserve_unused_port() which properly reserves ports using ephemeral_port_reserve to avoid race conditions.

@chrisguida chrisguida merged commit a1ad908 into master Jan 22, 2026
2 checks passed
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.

1 participant