Browse Source

test: add hasCrypto check to tls-legacy-deprecated

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: https://github.com/nodejs/node/pull/11747
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v6
Daniel Bevenius 8 years ago
parent
commit
b98004b79c
  1. 4
      test/parallel/test-tls-legacy-deprecated.js

4
test/parallel/test-tls-legacy-deprecated.js

@ -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');

Loading…
Cancel
Save