Browse Source

test: fix parallel/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.

PR-URL: https://github.com/iojs/io.js/pull/853
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
v1.8.0-commit
Roman Reiss 10 years ago
committed by Ben Noordhuis
parent
commit
30e340ad9d
  1. 1
      test/parallel/test-tls-getcipher.js

1
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();

Loading…
Cancel
Save