diff --git a/test.js b/test.js index 3a13418..a5f09b0 100644 --- a/test.js +++ b/test.js @@ -34,7 +34,7 @@ var mockServer = createMockServer(() => { mocha.run(function(failures) { mockServer.close(); server.close(); - process.exitCode = failures ? 1 : 0; // exit with non-zero status if there were failures + process.exit(failures ? 1 : 0); // exit with non-zero status if there were failures }); }); });