Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSakthipriyan Vairamani (thefourtheye) <thechargingvolcano@gmail.com>2017-02-27 21:54:03 +0300
committerAnna Henningsen <anna@addaleax.net>2017-03-06 01:22:39 +0300
commit2601c064863d35b653aaaf4dd6e6a2481a66ec4c (patch)
treee71eb5de156e68d19afb59f1b05b888bcac17d66 /test
parentb116830d648b9b723b8b25dc14ac85f94c934883 (diff)
test: skip tests with common.skip
The `common.skip` function adds proper message in TAP format to skipped tests. It is better not to have the message rewritten in the tests. PR-URL: https://github.com/nodejs/node/pull/11585 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-crypto-authenticated.js2
-rw-r--r--test/parallel/test-tls-empty-sni-context.js6
2 files changed, 3 insertions, 5 deletions
diff --git a/test/parallel/test-crypto-authenticated.js b/test/parallel/test-crypto-authenticated.js
index 245783fb1b4..1a628023b5c 100644
--- a/test/parallel/test-crypto-authenticated.js
+++ b/test/parallel/test-crypto-authenticated.js
@@ -318,7 +318,7 @@ for (const i in TEST_CASES) {
}
if (common.hasFipsCrypto && test.iv.length < 24) {
- console.log('1..0 # Skipped: IV len < 12 bytes unsupported in FIPS mode');
+ common.skip('IV len < 12 bytes unsupported in FIPS mode');
continue;
}
diff --git a/test/parallel/test-tls-empty-sni-context.js b/test/parallel/test-tls-empty-sni-context.js
index 994a81e9ea9..e68378fb4ea 100644
--- a/test/parallel/test-tls-empty-sni-context.js
+++ b/test/parallel/test-tls-empty-sni-context.js
@@ -3,16 +3,14 @@
const common = require('../common');
if (!process.features.tls_sni) {
- console.log('1..0 # Skipped: node compiled without OpenSSL or ' +
- 'with old OpenSSL version.');
+ common.skip('node compiled without OpenSSL or with old OpenSSL version.');
return;
}
const assert = require('assert');
if (!common.hasCrypto) {
- console.log('1..0 # Skipped: missing crypto');
- return;
+ return common.skip('missing crypto');
}
const tls = require('tls');