★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/61ae592c4fNouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files

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: #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>
  • Loading branch information...
conectado authored and targos committed Jul 25, 2018
1 parent 254aa83 commit 61ae592c4f14d8190a791a4e809d2a625e4b3098
Showing with 0 additions and 4 deletions.
  1. +0 −4 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();

0 comments on commit 61ae592

Please sign in to comment.
You can’t perform that action at this time.