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:
parent
c6406f9e57
commit
033ab7ebb6
@ -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);
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user