-
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: replace port in dgram send address types test #13007
Conversation
assert.throws(() => { | ||
client.send(buf, port, true); | ||
}, expectedError); | ||
const onMessage = common.mustCall((err, bytes) => { |
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.
Nit: can you please move this at the top of the file? before creating the socket.
assert.strictEqual(bytes, buf.length); | ||
}, 6); | ||
|
||
const expectedError = |
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.
Ditto.
Replaced common.PORT in the following test. test-dgram-send-address-types.js Ref: #12376
@lpinca All done, I moved those two items towards the top of the file. |
Landed in 281de19. |
Replaced common.PORT in the following test.
test-dgram-send-address-types.js
Ref: #12376
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test dgram