Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change net.GetFreePort to listening on port 0 #530

Merged
merged 2 commits into from
Feb 27, 2023

Conversation

thehowl
Copy link
Member

@thehowl thehowl commented Feb 20, 2023

Fixes #508

There are some instances where the code is now modifying configurations retroactively (such as bft/node and pkgs/p2p). This should still largely not be a problem because it only happens when listening on port 0, which should mostly be done just on tests.

@thehowl thehowl requested a review from a team as a code owner February 20, 2023 09:30
Copy link
Member

@zivkovicmilos zivkovicmilos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 💯

Thank you for this fix 🙏
Hoping this resolves our test.go3 workflow headaches, as we now grab the port instead of assuming it for later

@moul moul merged commit 3291945 into gnolang:master Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Tests do not hold unique TCP ports
3 participants