Skip to content

Commit

Permalink
test: fix parallel/test-tls-getcipher
Browse files Browse the repository at this point in the history
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: #853
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
silverwind authored and bnoordhuis committed Feb 15, 2015
1 parent 35ed799 commit 30e340a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/parallel/test-tls-getcipher.js
Expand Up @@ -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();
Expand Down

0 comments on commit 30e340a

Please sign in to comment.