Skip to content
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

Open
okay-dude opened this issue Apr 18, 2019 · 5 comments
Open

null reference in main/util.js #229

okay-dude opened this issue Apr 18, 2019 · 5 comments

Comments

@okay-dude
Copy link

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)

@1999
Copy link
Collaborator

1999 commented Apr 19, 2019

@dbrinda-db can you post any test code you're running so that I could reproduce it?

@okay-dude
Copy link
Author

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.

@1999
Copy link
Collaborator

1999 commented Apr 22, 2019

Do you always see the same stack trace for this error?

@okay-dude
Copy link
Author

yes

@okay-dude
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants