-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
null reference in main/util.js #229
Comments
@dbrinda-db can you post any test code you're running so that I could reproduce it? |
i have no idea what causes this. it blows up randomly while running some combination of 20+ mocha tests and 3500 test cases. does not seem to be a deterministic failure. |
Do you always see the same stack trace for this error? |
yes |
most of the time the tests complete without hitting this error. it happens maybe 10% of the time. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure what causes "fn" to be null but sometimes it seems to be null. This causes the mocha-parallel-tests to crash. I'm using mocha 3.0.2. Wrapping the assignment in a if block seemed to fix it.
Unhandled asynchronous exception: TypeError: Cannot set property 'toString' of null
at Array.subprocessParseReviver (/repos/dbook-cloud/tests/node_modules/mocha-parallel-tests/dist/main/util.js:18:26)
at Array. (/repos/dbook-cloud/tests/node_modules/circular-json/build/circular-json.node.js:138:30)
at JSON.parse ()
at Object.parse (/repos/dbook-cloud/tests/node_modules/circular-json/build/circular-json.node.js:196:32)
at MochaWrapper.addSubprocessSuites (/repos/dbook-cloud/tests/node_modules/mocha-parallel-tests/dist/main/mocha.js:99:59)
at TaskManager.taskManager.on (/repos/dbook-cloud/tests/node_modules/mocha-parallel-tests/dist/main/mocha.js:73:22)
at emitOne (events.js:116:13)
at TaskManager.emit (events.js:211:7)
at TaskManager.onTaskProcessingFinished (/repos/dbook-cloud/tests/node_modules/mocha-parallel-tests/dist/main/task-manager.js:19:18)
at emitTwo (events.js:126:13)
The text was updated successfully, but these errors were encountered: