test: fix flaky test-net-GH-5504

The test is failing on `SmartOS` quite often. Removing the timeout seems
to fix it.

Fixes: https://github.com/nodejs/node/issues/8930
PR-URL: https://github.com/nodejs/node/pull/9461
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
Santiago Gimeno authored and Evan Lucas committed 2016-11-07 15:58:08 -06:00
1 parent f640bafc58
commit 6eb6816e22
1 file changed
-8
-8
View File
@@ -48,14 +48,6 @@ function parent() {
var spawn = require('child_process').spawn;
var node = process.execPath;
setTimeout(function() {
if (s) s.kill();
if (c) c.kill();
setTimeout(function() {
throw new Error('hang');
});
}, common.platformTimeout(2000)).unref();
var s = spawn(node, [__filename, 'server'], {
env: Object.assign(process.env, {
NODE_DEBUG: 'net'