diff --git a/test/simple/test-tls-securepair-client.js b/test/simple/test-tls-securepair-client.js index 9452fb20f3..1b1b510fee 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); });