summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-check-server-identity.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-check-server-identity.js
parent69298d36cfe1d5ad2ade0e64586959cc18c7ea4e (diff)
downloadnode-new-79c865a53feef1828d8c93e953acbeb01ee2cb74.tar.gz
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-check-server-identity.js')
-rw-r--r--test/parallel/test-tls-check-server-identity.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-tls-check-server-identity.js b/test/parallel/test-tls-check-server-identity.js
index e40cbb0f9d..e659f40aa9 100644
--- a/test/parallel/test-tls-check-server-identity.js
+++ b/test/parallel/test-tls-check-server-identity.js
@@ -5,7 +5,7 @@ var util = require('util');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
- process.exit();
+ return;
}
var tls = require('tls');