0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

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.
This commit is contained in:
Ryan Dahl 2010-12-16 12:22:30 -08:00
parent c6406f9e57
commit 033ab7ebb6

View File

@ -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);
});