Browse Source

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: https://github.com/nodejs/node/pull/12929
Refs: https://github.com/nodejs/node/issues/12376
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
v6
Artur Vieira 8 years ago
committed by Luigi Pinca
parent
commit
4c847347c3
  1. 2
      test/parallel/test-dgram-send-callback-buffer-empty-address.js

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

@ -14,4 +14,4 @@ const onMessage = common.mustCall(function(err, bytes) {
client.close(); client.close();
}); });
client.send(buf, common.PORT, onMessage); client.bind(0, () => client.send(buf, client.address().port, onMessage));

Loading…
Cancel
Save