visionmedia/mocha — Issue #99: Global leaks
Author: johnnywengluu
Created: 2011-11-30 11:39:09+00:00
State: open

I am using YUI3 on node.js but I get this when running the test:

0) SDK should convert xml into json with yql
1) SDK should convert xml into json with yql

✖ 2 of 2 tests failed:

0) SDK should convert xml into json with yql:
Error: global leaks detected: encoding, parseQueryString

at Runner.checkGlobals (/usr/local/lib/node_modules/mocha/lib/runner.js:78:21)
at Runner. (/usr/local/lib/node_modules/mocha/lib/runner.js:40:44)
at Runner.emit (events.js:88:20)
at next (/usr/local/lib/node_modules/mocha/lib/runner.js:268:12)
at /usr/local/lib/node_modules/mocha/lib/runner.js:291:25
at done (/usr/local/lib/node_modules/mocha/lib/runnable.js:97:5)
at Object. (/usr/local/lib/node_modules/mocha/lib/runnable.js:80:7)
at Timer.ontimeout (timers.js:84:39)

1) SDK should convert xml into json with yql:
Error: global leaks detected: encoding, parseQueryString

at Runner.checkGlobals (/usr/local/lib/node_modules/mocha/lib/runner.js:78:21)
at Runner. (/usr/local/lib/node_modules/mocha/lib/runner.js:40:44)
at Runner.emit (events.js:88:20)
at next (/usr/local/lib/node_modules/mocha/lib/runner.js:268:12)
at /usr/local/lib/node_modules/mocha/lib/runner.js:291:25
at done (/usr/local/lib/node_modules/mocha/lib/runnable.js:97:5)
at Object. (/usr/local/lib/node_modules/mocha/lib/runnable.js:80:7)
at Timer.ontimeout (timers.js:84:39)

Seems to come from Mocha. Any clue?