From 61ae592c4f14d8190a791a4e809d2a625e4b3098 Mon Sep 17 00:00:00 2001 From: conectado Date: Wed, 25 Jul 2018 01:35:55 -0300 Subject: [PATCH] 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 Reviewed-By: Jon Moss Reviewed-By: Anatoli Papirovski Reviewed-By: Luigi Pinca --- test/internet/test-net-connect-unref.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/internet/test-net-connect-unref.js b/test/internet/test-net-connect-unref.js index da4c77de4840c0..434b8077c0ab7e 100644 --- a/test/internet/test-net-connect-unref.js +++ b/test/internet/test-net-connect-unref.js @@ -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();