Skip to content

Commit

Permalink
test: add hasCrypto check to tls-legacy-deprecated
Browse files Browse the repository at this point in the history
Currently test-tls-legacy-deprecated will fail if node
was built using --without-ssl. This commit adds a check to
verify is crypto support exists and if not skip this test.

PR-URL: nodejs#11747
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
danbev authored and jungx098 committed Mar 21, 2017
1 parent cbc2f55 commit eceb3d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/parallel/test-tls-legacy-deprecated.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Flags: --no-warnings
'use strict';
const common = require('../common');
if (!common.hasCrypto) {
common.skip('missing crypto');
return;
}
const assert = require('assert');
const tls = require('tls');

Expand Down

0 comments on commit eceb3d9

Please sign in to comment.