mirror of
https://github.com/nodejs/node.git
synced 2025-05-17 10:27:12 +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>
14 lines
271 B
JavaScript
14 lines
271 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const net = require('net');
|
|
|
|
const TIMEOUT = 10 * 1000;
|
|
|
|
const client = net.createConnection(53, '8.8.8.8', function() {
|
|
client.unref();
|
|
});
|
|
|
|
client.on('close', common.fail);
|
|
|
|
setTimeout(common.fail, TIMEOUT).unref();
|