You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by cs...@apache.org on 2016/03/14 13:56:48 UTC

cordova-cli git commit: CB-10860 avoid node complaining of too many event listener added when running tests

Repository: cordova-cli
Updated Branches:
  refs/heads/master 04b38715d -> 19a735bf6


CB-10860 avoid node complaining of too many event listener added when running tests


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/19a735bf
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/19a735bf
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/19a735bf

Branch: refs/heads/master
Commit: 19a735bf6492359bb6bf84f3b186625012f408dc
Parents: 04b3871
Author: Carlos Santana <cs...@gmail.com>
Authored: Mon Mar 14 08:56:30 2016 -0400
Committer: Carlos Santana <cs...@gmail.com>
Committed: Mon Mar 14 08:56:30 2016 -0400

----------------------------------------------------------------------
 spec/cli.spec.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/19a735bf/spec/cli.spec.js
----------------------------------------------------------------------
diff --git a/spec/cli.spec.js b/spec/cli.spec.js
index 7881614..ee8adba 100644
--- a/spec/cli.spec.js
+++ b/spec/cli.spec.js
@@ -22,6 +22,9 @@ var cli = require("../src/cli"),
     cordova_lib = require('cordova-lib'),
     events = cordova_lib.events,
     cordova = cordova_lib.cordova;
+    
+    //avoid node complaining of too many event listener added
+    process.setMaxListeners(0);
 
 describe("cordova cli", function () {
     beforeEach(function () {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org