Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Commit

Permalink
don't test TLS 1.3 in Node v10
Browse files Browse the repository at this point in the history
  • Loading branch information
kolontsov committed Jun 1, 2019
1 parent 3060046 commit b47ba91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ describe('keylog API polyfill', function() {
}
));

const ver = process.version;
const major_ver = parseInt(/^v(\d+)/.exec(ver)[1]);
// XXX rm when TLS 1.3 will be available in Node 10
if (major_ver < 11)
return;
// TLS 1.3 tests below
it('works for TLSv1.3', withPair(
{ minVersion: 'TLSv1.3', maxVersion: 'TLSv1.3' },
async function (server, client, lines) {
Expand Down

0 comments on commit b47ba91

Please sign in to comment.