UNPKG

payapi-rabbus

Version:

A micro-servicebus for RabbitMQ. Forked from https://github.com/derickbailey/rabbus.git solely to make it use payapi-whistlepunk as a dependency.

31 lines (27 loc) 561 B
var rabbit = require("payapi-rabbot"); var config = require("../config"); beforeAll(function(done){ rabbit.configure({ connection: config }) .then(() => { done(); }) .catch(function(err){ console.log(err); if (err.stack){ console.log(err.stack); } process.exit(); }); }); afterAll(function(done){ var shutdown = rabbit.shutdown(); shutdown.catch(function(err){ console.log(err.stack); done(); }); done(); }); process.on("unhandledRejection", function(err){ console.log(err.stack); process.exit(); });