diff options
author | conectado <gabrielalejandro7@gmail.com> | 2018-07-25 01:35:55 -0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-07-26 16:43:21 -0700 |
commit | 586a7a4b1326dbc0603593edbc12aaec43dbe682 (patch) | |
tree | ad2d8063316e3cdeecc0982a3a0581f28aa5ff0c /test/internet | |
parent | 40a413edf7ef4379cca2072bb8777be7986e2d2d (diff) | |
download | node-new-586a7a4b1326dbc0603593edbc12aaec43dbe682.tar.gz |
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>
Diffstat (limited to 'test/internet')
-rw-r--r-- | test/internet/test-net-connect-unref.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/internet/test-net-connect-unref.js b/test/internet/test-net-connect-unref.js index da4c77de48..434b8077c0 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(); |