Skip to content

Commit 4c84734

Browse files
vieiraarturglpinca
authored andcommitted
test: replace common.PORT in dgram test
Replace common.PORT with available port assigned by the operating system in test-dgram-send-callback-buffer-empty-address. PR-URL: #12929 Refs: #12376 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 330c8d7 commit 4c84734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ const onMessage = common.mustCall(function(err, bytes) {
1414
client.close();
1515
});
1616

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

0 commit comments

Comments
 (0)