Skip to content

Commit 96925e1

Browse files
vieiraarturgjasnell
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 f812817 commit 96925e1

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

+1-1
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)