Skip to content

Commit

Permalink
Merge pull request #152 from gemini-testing/fix/memory.warns
Browse files Browse the repository at this point in the history
fix: ignore memory leaks warnings for mocha suites
  • Loading branch information
j0tunn authored Jun 20, 2017
2 parents e05042e + 93ed298 commit fd922fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/runner/mocha-runner/mocha-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ module.exports = class MochaAdapter extends EventEmitter {
this._mocha.fullTrace();
this.suite = this._mocha.suite;

this.suite.setMaxListeners(0);
this._addEventHandler('suite', (suite) => suite.setMaxListeners(0));

this.tests = [];

this._replaceTimeouts();
Expand Down

0 comments on commit fd922fc

Please sign in to comment.