Fix test process not dying

This commit is contained in:
Ajay Ramachandran
2020-04-23 11:58:36 -04:00
parent 818c288ba0
commit a3b01e4eae

View File

@@ -34,7 +34,7 @@ var mockServer = createMockServer(() => {
mocha.run(function(failures) { mocha.run(function(failures) {
mockServer.close(); mockServer.close();
server.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
}); });
}); });
}); });