summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-tls-npn-server-client.js5
-rw-r--r--test/parallel/test-tls-sni-option.js5
-rw-r--r--test/parallel/test-tls-sni-server-client.js4
3 files changed, 8 insertions, 6 deletions
diff --git a/test/parallel/test-tls-npn-server-client.js b/test/parallel/test-tls-npn-server-client.js
index 44e9b86ad7..7cb8723ff5 100644
--- a/test/parallel/test-tls-npn-server-client.js
+++ b/test/parallel/test-tls-npn-server-client.js
@@ -1,11 +1,12 @@
'use strict';
+
+const common = require('../common');
+
if (!process.features.tls_npn) {
common.skip('Skipping because node compiled without NPN feature of OpenSSL.');
return;
}
-const common = require('../common');
-
if (!common.hasCrypto) {
common.skip('missing crypto');
return;
diff --git a/test/parallel/test-tls-sni-option.js b/test/parallel/test-tls-sni-option.js
index ba9acbf528..e1ecfb9620 100644
--- a/test/parallel/test-tls-sni-option.js
+++ b/test/parallel/test-tls-sni-option.js
@@ -1,11 +1,12 @@
'use strict';
+
+const common = require('../common');
+
if (!process.features.tls_sni) {
common.skip('node compiled without OpenSSL or with old OpenSSL version.');
return;
}
-const common = require('../common');
-
if (!common.hasCrypto) {
common.skip('missing crypto');
return;
diff --git a/test/parallel/test-tls-sni-server-client.js b/test/parallel/test-tls-sni-server-client.js
index e47781a972..4e1ab6484c 100644
--- a/test/parallel/test-tls-sni-server-client.js
+++ b/test/parallel/test-tls-sni-server-client.js
@@ -1,11 +1,11 @@
'use strict';
+const common = require('../common');
+
if (!process.features.tls_sni) {
common.skip('node compiled without OpenSSL or with old OpenSSL version.');
return;
}
-const common = require('../common');
-
if (!common.hasCrypto) {
common.skip('missing crypto');
return;