mirror of
https://github.com/nodejs/node.git
synced 2025-05-08 14:36:08 +00:00

Manually fix issues that eslint --fix couldn't do automatically. PR-URL: https://github.com/nodejs/node/pull/10685 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
16 lines
400 B
JavaScript
16 lines
400 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const net = require('net');
|
|
|
|
const client = net.connect({
|
|
port: common.PORT + 1,
|
|
localPort: common.PORT,
|
|
localAddress: common.localhostIPv4
|
|
});
|
|
|
|
client.on('error', common.mustCall(function onError(err) {
|
|
assert.equal(err.localPort, common.PORT);
|
|
assert.equal(err.localAddress, common.localhostIPv4);
|
|
}));
|