mirror of
https://github.com/nodejs/node.git
synced 2025-05-06 09:02:40 +00:00

Remove a handful of variables that are declared but never used in the tests for the net module. PR-URL: https://github.com/nodejs/node/pull/4430 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
19 lines
422 B
JavaScript
19 lines
422 B
JavaScript
'use strict';
|
|
var common = require('../common');
|
|
var net = require('net');
|
|
|
|
function check(addressType) {
|
|
var server = net.createServer(function(client) {
|
|
client.end();
|
|
server.close();
|
|
});
|
|
|
|
var address = addressType === 4 ? '127.0.0.1' : '::1';
|
|
server.listen(common.PORT, address, function() {
|
|
net.connect(common.PORT, address).on('lookup', common.fail);
|
|
});
|
|
}
|
|
|
|
check(4);
|
|
common.hasIPv6 && check(6);
|