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

Simplify system::get_available_port() #4388

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

dsiganos
Copy link
Contributor

The function get_available_port is too confusing. To simplify it, I am refactoring one test job it has into a separate test function.

The test function speculatively chooses a free tcp binding port, for one unit test case, to check that the node can be configured with a manual port.

@dsiganos dsiganos added non-functional change exclude from changelog Indicates the change is not relevant for appearing in the release changelog labels Jan 23, 2024
@dsiganos dsiganos force-pushed the simplify_get_available_port branch from 0b2fc82 to eaf5c3c Compare January 23, 2024 02:45
clemahieu
clemahieu previously approved these changes Jan 23, 2024
The function get_available_port is too confusing. To simplify it, I am
refactoring one test job it has into a separate test function.

The test function speculatively chooses a free tcp binding port, for one
unit test case, to check that the node can be configured with a manual
port.
@dsiganos dsiganos force-pushed the simplify_get_available_port branch from eaf5c3c to 1f11700 Compare January 25, 2024 12:38
@dsiganos dsiganos merged commit 9b61655 into nanocurrency:develop Jan 25, 2024
17 of 19 checks passed
@dsiganos dsiganos deleted the simplify_get_available_port branch January 25, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude from changelog Indicates the change is not relevant for appearing in the release changelog non-functional change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants