mirror of https://github.com/nodejs/node.git
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
parent
35ed79932c
commit
30e340ad9d
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue