-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
test changing common.PORT to use 0 within the test-cluster-dgram.reus… #12932
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
Changes from 6 commits
bf452e2
55107dc
49ffe2d
0be4a6e
7db0f60
e4f250a
41292b7
35b3d29
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,5 +36,9 @@ function close() { | |
| cluster.worker.disconnect(); | ||
| } | ||
|
|
||
| for (let i = 0; i < 2; i++) | ||
| dgram.createSocket({ type: 'udp4', reuseAddr: true }).bind(common.PORT, next); | ||
| const socket = dgram.createSocket({type: 'udp4', reuseAddr: true}) | ||
| .bind(0, common.mustCall(() => { | ||
| const socket2 = socket(); | ||
| socket.bind(this.address().port, next); | ||
|
||
| socket2.bind(this.address().port, next); | ||
| })); | ||
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.
socket()looks incorrect to me. Should this bedgram.createSocket()?Uh oh!
There was an error while loading. Please reload this page.
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 was under the impression that calling socket() was the same as dgram.createSocket since I declared socket as a const. I updated the code here 41292b7