Uh oh!
There was an error while loading. Please reload this page.
test: add fix so that test exits if port 42 is unprivileged - #45904
Conversation
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
commented
Dec 19, 2022
Okay, I'll make these changes |
7suyash7
commented
Dec 19, 2022
@bnoordhuis is this fine? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
7suyash7
commented
Dec 19, 2022
added these changes @bnoordhuis |
7suyash7
commented
Dec 21, 2022
Can you try merging again? Had some lint errors, hopefully, they are fixed now. @bnoordhuis |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
7suyash7
commented
Dec 21, 2022
Can you please take a look? |
Uh oh!
There was an error while loading. Please reload this page.
| const { execSync } = require('child_process'); | ||
| if (common.isLinux) { | ||
| const sysctlOutput = execSync('sysctl net.ipv4.ip_unprivileged_port_start').toString(); |
There was a problem hiding this comment.
Sure, should I add one now? (PR is closing to merging I think...)
There was a problem hiding this comment.
PR is closing to merging I think...
I am not sure what you mean here, you can still push changes and I'll re-run CI after :]
If you prefer to put it in another change to practice making changes in Node.js as a new contributor - that's also fine with me.
There was a problem hiding this comment.
I would like it if I could put it in another change so I can practice making changes, that would be really helpful!
nodejs-github-bot
commented
Dec 22, 2022
nodejs-github-bot
commented
Jan 18, 2023
Landed in 60cc1ba |
fixes: #45838