test: fix parallel/test-tls-getcipher
authorRoman Reiss <me@silverwind.io>
Sun, 15 Feb 2015 17:35:14 +0000 (18:35 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Sun, 15 Feb 2015 17:43:06 +0000 (18:43 +0100)
The test blindly assumes that the default cipher suite supports RC4
ciphers. This corrects the case where RC4 might not be available in the
default ciphers by setting the client to use the same suite as the
server.

PR-URL: https://github.com/iojs/io.js/pull/853
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
test/parallel/test-tls-getcipher.js

index 7bf3fe8..05da2ca 100644 (file)
@@ -25,6 +25,7 @@ server.listen(common.PORT, '127.0.0.1', function() {
   var client = tls.connect({
     host: '127.0.0.1',
     port: common.PORT,
+    ciphers: cipher_list.join(':'),
     rejectUnauthorized: false
   }, function() {
     var cipher = client.getCipher();