summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-npn-server-client.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-tls-npn-server-client.js')
-rw-r--r--test/parallel/test-tls-npn-server-client.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/parallel/test-tls-npn-server-client.js b/test/parallel/test-tls-npn-server-client.js
index ffaf61b633..6a528732a3 100644
--- a/test/parallel/test-tls-npn-server-client.js
+++ b/test/parallel/test-tls-npn-server-client.js
@@ -21,15 +21,11 @@
'use strict';
const common = require('../common');
-if (!process.features.tls_npn) {
- common.skip('Skipping because node compiled without NPN feature of OpenSSL.');
- return;
-}
-
-if (!common.hasCrypto) {
+if (!common.hasCrypto)
common.skip('missing crypto');
- return;
-}
+
+if (!process.features.tls_npn)
+ common.skip('Skipping because node compiled without NPN feature of OpenSSL.');
const assert = require('assert');
const fs = require('fs');