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

TypeError: Cannot read property 'currentRetry' of undefined #2768

Closed
steadysupply opened this issue Apr 15, 2017 · 2 comments
Closed

TypeError: Cannot read property 'currentRetry' of undefined #2768

steadysupply opened this issue Apr 15, 2017 · 2 comments
Labels
stale this has been inactive for a while... type: bug a defect, confirmed by a maintainer

Comments

@steadysupply
Copy link

Running node_modules/mocha/bin/mocha -w "test/**/*.js" I saw.

/app/node_modules/mocha/lib/runner.js:553
          var retry = test.currentRetry();
                          ^

TypeError: Cannot read property 'currentRetry' of undefined
    at /app/node_modules/mocha/lib/runner.js:553:27
    at done (/app/node_modules/mocha/lib/runnable.js:295:5)
    at Test.<anonymous> (/app/node_modules/mocha/lib/runnable.js:370:16)
    at Test.assert (/app/node_modules/supertest/lib/test.js:179:6)
    at Server.assert (/app/node_modules/supertest/lib/test.js:131:12)
    at Object.onceWrapper (events.js:293:19)
    at emitNone (events.js:86:13)
    at Server.emit (events.js:188:7)
    at emitCloseNT (net.js:1562:8)
    at _combinedTickCallback (internal/process/next_tick.js:77:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

Wasn't reproduced immediately when I restarted the process.

@ScottFreeCode
Copy link
Contributor

This sounds like #2315, which should be fixed (although it was hard to test to be sure) in the current version of Mocha. However, without seeing an example of test code that would trigger this, it's nearly impossible to tell if it's actually the same issue -- or, for that matter, to dig into it in any meaningful way (debugging, root cause analysis, design of fix...).

Make sure you're running the latest version of Mocha (also beware global installs, which can have different version than the local install); if you are and the issue still occurs (even if only sporadically), please try to get us a minimal, complete and verifiable example.

@drazisil drazisil added type: bug a defect, confirmed by a maintainer unconfirmed labels Apr 18, 2017
@stale
Copy link

stale bot commented Oct 17, 2017

I am a bot that watches issues for inactivity.
This issue hasn't had any recent activity, and I'm labeling it stale. In 14 days, if there are no further comments or activity, I will close this issue.
Thanks for contributing to Mocha!

@stale stale bot added the stale this has been inactive for a while... label Oct 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale this has been inactive for a while... type: bug a defect, confirmed by a maintainer
Projects
None yet
Development

No branches or pull requests

3 participants