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/pummel/test-tls-session-timeout.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/pummel/test-tls-session-timeout.js')
-rw-r--r-- | test/pummel/test-tls-session-timeout.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pummel/test-tls-session-timeout.js b/test/pummel/test-tls-session-timeout.js index 0e8abf7bcb..64548e2043 100644 --- a/test/pummel/test-tls-session-timeout.js +++ b/test/pummel/test-tls-session-timeout.js @@ -3,12 +3,12 @@ var common = require('../common'); 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; } doTest(); |