Skip to content
Permalink
Browse files

test: remove common.PORT from dgram test

Remove common.PORT from
test-dgram-send-callback-buffer-length-empty-address to eliminate
possibility that a dynamic port used in another test will collide
with common.PORT.

PR-URL: #12944
Refs: #12376
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <mhdawson@ibm.com>
  • Loading branch information...
arturgvieira authored and jasnell committed May 10, 2017
1 parent 8a4f3b7 commit 511ee24310532a90b297bb05bf07f3307ac7d5c5
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/parallel/test-dgram-send-callback-buffer-length-empty-address.js
@@ -17,4 +17,6 @@ const onMessage = common.mustCall(function messageSent(err, bytes) {
client.close();
});

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

0 comments on commit 511ee24

Please sign in to comment.
You can’t perform that action at this time.