Skip to content

Commit

Permalink
test: fix 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.
  • Loading branch information
silverwind committed Feb 15, 2015
1 parent 982b143 commit d5ac246
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/parallel/test-tls-getcipher.js
Original file line number Diff line number Diff line change
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 d5ac246

Please sign in to comment.