summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-alert.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-tls-alert.js')
-rw-r--r--test/parallel/test-tls-alert.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/test/parallel/test-tls-alert.js b/test/parallel/test-tls-alert.js
index ef79856108..8aa56eaf75 100644
--- a/test/parallel/test-tls-alert.js
+++ b/test/parallel/test-tls-alert.js
@@ -21,16 +21,11 @@
'use strict';
const common = require('../common');
+if (!common.hasCrypto)
+ common.skip('missing crypto');
-if (!common.opensslCli) {
+if (!common.opensslCli)
common.skip('node compiled without OpenSSL CLI.');
- return;
-}
-
-if (!common.hasCrypto) {
- common.skip('missing crypto');
- return;
-}
const assert = require('assert');
const { spawn } = require('child_process');