mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
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>
This commit is contained in:
parent
69298d36cf
commit
79c865a53f
151 changed files with 165 additions and 165 deletions
|
@ -4,7 +4,7 @@ var assert = require('assert');
|
|||
|
||||
if (!common.hasCrypto) {
|
||||
console.log('1..0 # Skipped: missing crypto');
|
||||
process.exit();
|
||||
return;
|
||||
}
|
||||
var https = require('https');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue