mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04: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:
1 parent
69298d36cf
commit
79c865a53f
151 files changed
+165
-165
No files matched your search
@@ -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');
|
||||
|
||||
|
||||
Reference in new issue
Block a user