Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: replace port in dgram cb test
Replaced common.PORT in the following test.
test-dgram-send-callback-buffer.js

Ref: #12376
  • Loading branch information
vieiraarturg committed May 12, 2017
commit b53b1ac1999c2fa60670fa675ae9b96d2b575e1d
5 changes: 4 additions & 1 deletion test/parallel/test-dgram-send-callback-buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ const onMessage = common.mustCall(function(err, bytes) {
client.close();
});

client.send(buf, common.PORT, common.localhostIPv4, onMessage);
client.bind(0, () => client.send(buf,
client.address().port,
common.localhostIPv4,
onMessage));