From dc7e3c7561035c209925cde6eaaeb1229bbcb0f6 Mon Sep 17 00:00:00 2001 From: Ben Phillips Date: Mon, 21 Nov 2016 10:08:04 -0800 Subject: [PATCH] Explicitly exit out of nodeunit in both success and failure cases --- bin/nodeunit | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/nodeunit b/bin/nodeunit index da79d42ae..9516ab689 100755 --- a/bin/nodeunit +++ b/bin/nodeunit @@ -124,7 +124,5 @@ else { } testrunner.run(files, options, function(err) { - if (err) { - process.exit(1); - } + process.exit(err ? 1 : 0); });