Error reporting tests

This commit is contained in:
sublimator
2014-01-20 20:13:52 -05:00
committed by Vinnie Falco
parent 9d07ddeae1
commit d2953f602e
2 changed files with 142 additions and 2 deletions

View File

@@ -525,10 +525,13 @@ exports.verify_offer_not_found = verify_offer_not_found;
exports.verify_owner_count = verify_owner_count;
exports.verify_owner_counts = verify_owner_counts;
process.on('uncaughtException', function() {
// ND: perhaps `exit` is more suitable, else when using suite(Setup|Teardown)
// with build_setup we could hang.
process.on('exit', function() {
// process.on('uncaughtException', function() {
Object.keys(server).forEach(function(host) {
server[host].stop();
});
});
// vim:sw=2:sts=2:ts=8:et
// vim:sw=2:sts=2:ts=8:et