From 2913d47e0cc4a311399d3d33452e3ed403d71951 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Thu, 21 Jun 2018 12:44:24 -0400 Subject: [PATCH] tests: use newer cipher for SSL cipher test --- test/common.js | 2 +- test/unit/connection/test-connection-ssl-ciphers.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/common.js b/test/common.js index db502b60f..3f26e29a5 100644 --- a/test/common.js +++ b/test/common.js @@ -141,7 +141,7 @@ common.getSSLConfig = function() { return { ca : fs.readFileSync(path.join(common.fixtures, 'server.crt'), 'ascii'), cert : fs.readFileSync(path.join(common.fixtures, 'server.crt'), 'ascii'), - ciphers : 'ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH', + ciphers : 'ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:AES128-SHA:HIGH:!MD5:!aNULL:!EDH', key : fs.readFileSync(path.join(common.fixtures, 'server.key'), 'ascii') }; }; diff --git a/test/unit/connection/test-connection-ssl-ciphers.js b/test/unit/connection/test-connection-ssl-ciphers.js index 2a8f48e68..6a0335f76 100644 --- a/test/unit/connection/test-connection-ssl-ciphers.js +++ b/test/unit/connection/test-connection-ssl-ciphers.js @@ -4,7 +4,7 @@ var connection = common.createConnection({ port : common.fakeServerPort, ssl : { ca : common.getSSLConfig().ca, - ciphers : 'RC4-SHA' + ciphers : 'AES128-SHA' } }); @@ -17,7 +17,7 @@ server.listen(common.fakeServerPort, function (err) { assert.ifError(err); assert.equal(rows.length, 1); assert.equal(rows[0].Variable_name, 'Ssl_cipher'); - assert.equal(rows[0].Value, 'RC4-SHA'); + assert.equal(rows[0].Value, 'AES128-SHA'); connection.destroy(); server.destroy();