Browse Source

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.
v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
033ab7ebb6
  1. 7
      test/simple/test-tls-securepair-client.js

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

Loading…
Cancel
Save