tdebarochez/connect-couchdb — pull request #15 by yhahn (2012-04-17 21:23:02+00:00)
Title: Store reference to intervals and add method for clearing intervals.

This branch removes the `env === 'test'` hack for skipping `setInterval` in the constructor and instead gives API users two ways to avoid intervals:

1. Set `opts.reapInterval` and `opts.compactInterval` to <= 0 OR
2. Call `clearInterval()` manually.

I've updated the tests to use this method. The commands in `tools` could be updated as well to clear the intervals and quit gracefully rather than forcefully calling `process.exit(0)`.