test: add -no_rand_screen for tls-server-verify
authorShigeki Ohtsu <ohtsu@iij.ad.jp>
Wed, 27 May 2015 01:41:43 +0000 (10:41 +0900)
committerAlexis Campailla <alexis@janeasystems.com>
Wed, 3 Jun 2015 17:11:23 +0000 (19:11 +0200)
This improves the performance of openssl s_client on Windows and
gains several seconds to finish test-tls-server-verify.

Fixes: https://github.com/nodejs/io.js/issues/1461
PR-URL: https://github.com/nodejs/io.js/pull/1836
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
test/parallel/test-tls-server-verify.js

index 6ee8ac4..387ede8 100644 (file)
@@ -134,6 +134,9 @@ function runClient(prefix, port, options, cb) {
 
   var args = ['s_client', '-connect', '127.0.0.1:' + port];
 
+  // for the performance issue in s_client on Windows
+  if (process.platform === 'win32')
+    args.push('-no_rand_screen');
 
   console.log(prefix + '  connecting with', options.name);