From d5ac246329aaf5842698aff6936b61c6a80b51e5 Mon Sep 17 00:00:00 2001 From: Roman Reiss Date: Sun, 15 Feb 2015 18:35:14 +0100 Subject: [PATCH] test: fix test-tls-getcipher 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. --- test/parallel/test-tls-getcipher.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/parallel/test-tls-getcipher.js b/test/parallel/test-tls-getcipher.js index 7bf3fe88f70e70..05da2ca718684a 100644 --- a/test/parallel/test-tls-getcipher.js +++ b/test/parallel/test-tls-getcipher.js @@ -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();