test: remove setTimeout in test-net-connect-unref
Removes the setTimeout since if the test were to fail it would time out due to the tools/test.py wrapper PR-URL: https://github.com/nodejs/node/pull/21969 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
40a413edf7
commit
586a7a4b13
@ -23,12 +23,8 @@
|
||||
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.mustNotCall());
|
||||
|
||||
setTimeout(common.mustNotCall(), TIMEOUT).unref();
|
||||
|
Loading…
x
Reference in New Issue
Block a user