argon/node-apn — Issue #17: mocha unit tests show error: global memory leak on newing a connection
Author: mypark
Created: 2011-12-02 17:16:33+00:00
State: open

Not sure if this is a valid error or not but was trying to set up some unit testing with mocha and I get the error "Error: global leak detected: hasCert" when I try to create an pans.connection

e.g.
apnsConnection = new apns.connection config.apnOptions

creates error

Error: global leak detected: hasCert
at Runner.checkGlobals (/usr/lib/node_modules/mocha/lib/runner.js:96:21)
at Runner. (/usr/lib/node_modules/mocha/lib/runner.js:41:44)
at Runner.emit (events.js:64:17)
at /usr/lib/node_modules/mocha/lib/runner.js:159:12
at Hook.run (/usr/lib/node_modules/mocha/lib/runnable.js:114:5)
at next (/usr/lib/node_modules/mocha/lib/runner.js:157:10)
at Array. (/usr/lib/node_modules/mocha/lib/runner.js:165:5)
at EventEmitter._tickCallback (node.js:126:26)