Skip to content

Commit

Permalink
Set exit code variable without calling process.exit
Browse files Browse the repository at this point in the history
`process.exit` quits immediately, without allowing buffered output from
say, a `console.log` to be printed. See these Node.js issues:

nodejs/node#3669
nodejs/node#3170
nodejs/node#2972 (comment)
  • Loading branch information
orangejulius committed Apr 4, 2016
1 parent 837d9a9 commit 996b1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/fuzzy-tester
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var analyze_results = require( '../lib/analyze_results' );
// display results using the correct output generator
var return_code = config.outputGenerator(evaled_results, config, testSuites);

process.exit(return_code);
process.exitCode = return_code;
};

// find all test suites and test cases that will be run
Expand Down

0 comments on commit 996b1e7

Please sign in to comment.