Skip to content

Commit

Permalink
[misc] test TLS minimum version change in order to test old mysql ser…
Browse files Browse the repository at this point in the history
…ver with Node.js 12
  • Loading branch information
rusher committed Sep 5, 2019
1 parent 0f542cc commit 0c0df1a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/integration/test-ssl.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ describe('ssl', function() {
//TLSv1.2 is supported on windows only since MariaDB 10.4
//TLSv1.2 is supported in MySQL only since 8.0 (unix/windows)
//so if testing with Node.js 12, force possible TLS1.1
tls.DEFAULT_MIN_VERSION = 'TLSv1.1';
if (!shareConn.info.isMariaDB() && !shareConn.info.hasMinVersion(5, 7, 0)) {
//MySQL 5.5 and MySQL 5.6 needs TLSv1
tls.DEFAULT_MIN_VERSION = 'TLSv1';
} else {
tls.DEFAULT_MIN_VERSION = 'TLSv1.1';
}
}

if (process.env.TEST_SSL_CA_FILE) {
Expand Down

0 comments on commit 0c0df1a

Please sign in to comment.