diff --git a/test/parallel/test-pipe-stream.js b/test/parallel/test-pipe-stream.js index c7d9a0a626559e..c697530c0d5d81 100644 --- a/test/parallel/test-pipe-stream.js +++ b/test/parallel/test-pipe-stream.js @@ -49,15 +49,10 @@ function test(clazz, cb) { }); } - const timeout = setTimeout(function() { - server.close(); - }, 2000); - const server = net.Server(); server.listen(common.PIPE, ping); server.on('connection', pong); server.on('close', function() { - clearTimeout(timeout); check(); cb && cb(); });