summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-ocsp-callback.js
diff options
context:
space:
mode:
authorSakthipriyan Vairamani <thechargingvolcano@gmail.com>2015-07-07 20:55:55 +0530
committerSakthipriyan Vairamani <thechargingvolcano@gmail.com>2015-07-20 15:50:42 +0530
commit79c865a53feef1828d8c93e953acbeb01ee2cb74 (patch)
tree32d769b9bb2e745f622607a8619463faab613779 /test/parallel/test-tls-ocsp-callback.js
parent69298d36cfe1d5ad2ade0e64586959cc18c7ea4e (diff)
downloadandroid-node-v8-79c865a53feef1828d8c93e953acbeb01ee2cb74.tar.gz
android-node-v8-79c865a53feef1828d8c93e953acbeb01ee2cb74.tar.bz2
android-node-v8-79c865a53feef1828d8c93e953acbeb01ee2cb74.zip
test: changing process.exit to return while skipping tests
This patch uses `return` statement to skip the test instead of using `process.exit` call. PR-URL: https://github.com/nodejs/io.js/pull/2109 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Diffstat (limited to 'test/parallel/test-tls-ocsp-callback.js')
-rw-r--r--test/parallel/test-tls-ocsp-callback.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-tls-ocsp-callback.js b/test/parallel/test-tls-ocsp-callback.js
index e61e49d292..2dbfc6c164 100644
--- a/test/parallel/test-tls-ocsp-callback.js
+++ b/test/parallel/test-tls-ocsp-callback.js
@@ -8,12 +8,12 @@ if (!process.features.tls_ocsp) {
}
if (!common.opensslCli) {
console.log('1..0 # Skipped: node compiled without OpenSSL CLI.');
- process.exit(0);
+ return;
}
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');