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>
pull/812/merge
Roman Reiss 2015-02-15 18:35:14 +01:00 committed by Ben Noordhuis
parent 35ed79932c
commit 30e340ad9d
1 changed files with 1 additions and 0 deletions

View File

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