mocha-parallel-tests
mocha-parallel-tests copied to clipboard
null reference in main/util.js
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.
@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.