Skip to content

Commit 511ee24

Browse files
vieiraarturgjasnell
authored andcommitted
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 8a4f3b7 commit 511ee24

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/parallel/test-dgram-send-callback-buffer-length-empty-address.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ const onMessage = common.mustCall(function messageSent(err, bytes) {
1717
client.close();
1818
});
1919

20-
client.send(buf, offset, len, common.PORT, onMessage);
20+
client.bind(0, () => client.send(buf, offset, len,
21+
client.address().port,
22+
onMessage));

0 commit comments

Comments
 (0)