mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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>
This commit is contained in:
1 parent
35ed79932c
commit
30e340ad9d
1 file changed
+1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user