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 committed 2010-12-16 12:23:38 -08:00
1 parent c6406f9e57
commit 033ab7ebb6
1 file changed
+7
@@ -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);
});