X Tutup
The Wayback Machine - https://web.archive.org/web/20221221145806/https://github.com/nodejs/node/pull/45904
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

test: add fix so that test exits if port 42 is unprivileged #45904

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

7suyash7
Copy link

@7suyash7 7suyash7 commented Dec 18, 2022

fixes: #45838

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Dec 18, 2022
@bnoordhuis
Copy link
Member

bnoordhuis commented Dec 18, 2022

The way the test is written now makes it possible for future regressions to go undetected so that's no good, unfortunately.

I'd simply call out to sysctl(1) with execSync() to check the value. There's at least one other instance of that in our test suite so it's not without precedent.

@7suyash7
Copy link
Author

7suyash7 commented Dec 19, 2022

Okay, I'll make these changes

@7suyash7
Copy link
Author

7suyash7 commented Dec 19, 2022

@bnoordhuis is this fine?

@7suyash7
Copy link
Author

7suyash7 commented Dec 19, 2022

added these changes @bnoordhuis

@7suyash7
Copy link
Author

7suyash7 commented Dec 21, 2022

Can you try merging again? Had some lint errors, hopefully, they are fixed now. @bnoordhuis

@7suyash7
Copy link
Author

7suyash7 commented Dec 21, 2022

Can you please take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test: check net.ipv4.ip_unprivileged_port_start in parallel/test-cluster-bind-privileged-port
3 participants
X Tutup