diff options
author | Sakthipriyan Vairamani <thechargingvolcano@gmail.com> | 2015-07-07 20:55:55 +0530 |
---|---|---|
committer | Sakthipriyan Vairamani <thechargingvolcano@gmail.com> | 2015-07-20 15:50:42 +0530 |
commit | 79c865a53feef1828d8c93e953acbeb01ee2cb74 (patch) | |
tree | 32d769b9bb2e745f622607a8619463faab613779 /test/parallel/test-tls-timeout-server-2.js | |
parent | 69298d36cfe1d5ad2ade0e64586959cc18c7ea4e (diff) | |
download | node-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-timeout-server-2.js')
-rw-r--r-- | test/parallel/test-tls-timeout-server-2.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-tls-timeout-server-2.js b/test/parallel/test-tls-timeout-server-2.js index f2dca0b9ab..29cce0f6af 100644 --- a/test/parallel/test-tls-timeout-server-2.js +++ b/test/parallel/test-tls-timeout-server-2.js @@ -4,7 +4,7 @@ var assert = require('assert'); if (!common.hasCrypto) { console.log('1..0 # Skipped: missing crypto'); - process.exit(); + return; } var tls = require('tls'); |