From ef123600ce2c56143a52a894cec780c6180f4cc0 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 31 Jan 2011 10:44:08 -0800 Subject: [PATCH] Add artificial timeout to broken test-https-large-response --- test/simple/test-https-large-response.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/simple/test-https-large-response.js b/test/simple/test-https-large-response.js index 36d78bbeb86..625606dc623 100644 --- a/test/simple/test-https-large-response.js +++ b/test/simple/test-https-large-response.js @@ -28,6 +28,10 @@ var server = https.createServer(options, function (req, res) { var count = 0; var gotResEnd = false; +var timeout = setTimeout(function() { + process.exit(1); +}, 10*1000); + server.listen(common.PORT, function () { https.get({ port: common.PORT }, function(res) { console.log("response!"); @@ -47,6 +51,8 @@ server.listen(common.PORT, function () { console.log(" got: ", count); server.close(); gotResEnd = true; + + clearTimeout(timeout); }); }); });