error-monkey

0.0.1 • Public • Published

error-monkey

BuildStatus Coverage Status

An event emitter that emits error events for use in testing your server for resilience.

Basic usage:

var errorMonkey = require('error-monkey');
errorMonkey(30, 0.5);  
  // ^^^ every 30 seconds, there's a 50% chance of error
 

You can drop error-monkey at different places in your code to make sure that your server can gracefully restart in the case of uncaught error events.

You want a graceful restart so that outstanding connections are not unceremoniously dropped.

Package Sidebar

Install

npm i error-monkey

Weekly Downloads

3

Version

0.0.1

License

MIT

Last publish

Collaborators

  • cainus