2014년 12월 11일 목요일

Re: 'RangeError: Invalid array length' exception from reporters/spec.j

I'm still experiencing this issue.

Is there any update?


These days, I face 'RangeError: Invalid array length' from node_modules/mocha/lib/reporters/spec.js:31:12 in using Mocha 2.0.1 occasionally. As far as I know, that error occurs when array length is not positive integer. Though I checked the source, I have no clue.
https://travis-ci.org/vibe-project/vibe-javascript-client/builds/39082330#L1074

I deal with Mocha programmatically by using require("mocha") and several mocha instances run concurrently. Would it be a problem?




We don’t recommend running Mocha instances concurrently. Likely, the reporter is failing because the suite end has fired multiple times for the same suite, which appears to cause Arrays of negative length to be created.
See the source and feel free to submit a PR.



Well... I have test run one by one but still have that problem. Is there any cause to trigger the issue?



댓글 없음:

댓글 쓰기