You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
677 B

  1. var path = require('path'),
  2. fs = require('fs');
  3. try {
  4. global.Gently = require('gently');
  5. } catch (e) {
  6. throw new Error('this test suite requires node-gently');
  7. }
  8. exports.lib = path.join(__dirname, '../../lib');
  9. global.GENTLY = new Gently();
  10. global.assert = require('assert');
  11. global.TEST_PORT = 13532;
  12. global.TEST_FIXTURES = path.join(__dirname, '../fixture');
  13. global.TEST_TMP = path.join(__dirname, '../tmp');
  14. // Stupid new feature in node that complains about gently attaching too many
  15. // listeners to process 'exit'. This is a workaround until I can think of a
  16. // better way to deal with this.
  17. if (process.setMaxListeners) {
  18. process.setMaxListeners(10000);
  19. }