From 033ab7ebb6773f6831846fff1b6366adb4d798fb Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 16 Dec 2010 12:22:30 -0800 Subject: [PATCH] Add 5 sec timeout to test-tls-securepair-client This test is broken for people who don't have OpenSSL 1.0.0 - but it's just a bug in OpenSSL. Add this timeout so that it doesn't take super long to run the tests. --- test/simple/test-tls-securepair-client.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/simple/test-tls-securepair-client.js b/test/simple/test-tls-securepair-client.js index 9452fb20f38..1b1b510fee2 100644 --- a/test/simple/test-tls-securepair-client.js +++ b/test/simple/test-tls-securepair-client.js @@ -61,9 +61,16 @@ server.stdout.on('data', function(s) { }); +var timeout = setTimeout(function () { + server.kill(); + process.exit(1); +}, 5000); + + var serverExitCode = -1; server.on('exit', function(code) { serverExitCode = code; + clearTimeout(timeout); });