-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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 unexpected value to dgram socket type assertion #18449
Conversation
@@ -52,10 +52,10 @@ validTypes.forEach((validType) => { | |||
// note: linux will double the buffer size | |||
assert.ok(socket.getRecvBufferSize() === 10000 || | |||
socket.getRecvBufferSize() === 20000, | |||
'SO_RCVBUF not 1300 or 2600'); | |||
`SO_RCVBUF not 1300 or 2600, was ${socket.getRecvBufferSize()}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused. Why the message says "1300 or 2600" when the value should be 10000 or 20000?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add that change? :-) I guess otherwise the PR would be ready to land.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely, will be added shortly! Thanks!
I apologise. Embarrassingly, something seems to have gone wrong with my first Node contribution. Any suggestions? |
@kcaulfield94 |
@bnoordhuis thanks for being so kind. Will update shortly. |
92fbc86
to
f390eb4
Compare
@kcaulfield94 Alternative approach: edit: I see it's the last commit here, kcaulfield94/node@f390eb4. If all else fails, I can probably fix it up for you. edit2: I just tried, I can't. Did you disallow edits from collaborators? You can pick from https://github.com/bnoordhuis/io.js/tree/pr18449 if you want. |
Ping @kcaulfield94 |
f390eb4
to
d465858
Compare
@@ -52,10 +52,12 @@ validTypes.forEach((validType) => { | |||
// note: linux will double the buffer size | |||
assert.ok(socket.getRecvBufferSize() === 10000 || | |||
socket.getRecvBufferSize() === 20000, | |||
'SO_RCVBUF not 1300 or 2600'); | |||
'SO_RCVBUF not 10000 or 20000, ' + | |||
`was ${socket.getRecvBufferSize()}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non blocking nit: please indent this code two more so it is possible to distinguish it from the other lines. The same applies to the part below.
Add unexpected value to dgram socket type assertion and fix the size entry. PR-URL: nodejs#18449 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Landed in 18e7284 🎉 @kcaulfield94 congratulation on your first commit to Node.js! |
Add unexpected value to dgram socket type assertion and fix the size entry. PR-URL: #18449 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Add unexpected value to dgram socket type assertion and fix the size entry. PR-URL: #18449 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Add unexpected value to dgram socket type assertion and fix the size entry. PR-URL: #18449 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Add unexpected value to dgram socket type assertion and fix the size entry. PR-URL: nodejs#18449 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Add unexpected value to dgram socket type assertion and fix the size entry. PR-URL: #18449 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Add unexpected value to dgram socket type assertion and fix the size entry. PR-URL: #18449 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test/dgram