title: global leak errors in mocha
body: <p>I was trying to unit test the <a href="https://github.com/argon/node-apn">apple push notification library</a> when I got a global leak error trying to open up an APN connection. </p>
  
  <p>Is that a configuration error on my part or an error in node-apn or mocha?</p>
  
  <p>I'm not sure I understand what checkGlobals is doing... is it just checking to see if any global variable are being set?</p>
  
  <pre><code>0) Feed "before all" hook:
     Error: global leak detected: hasCert
       at Runner.checkGlobals (/usr/lib/node_modules/mocha/lib/runner.js:96:21)
       at Runner.&lt;anonymous&gt; (/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.&lt;anonymous&gt; (/usr/lib/node_modules/mocha/lib/runner.js:165:5)
       at EventEmitter._tickCallback (node.js:126:26)
  </code></pre>