mochajs / mocha

☕️ simple, flexible, fun javascript test framework for node.js & the browser
https://mochajs.org
MIT License
22.63k stars 3.02k forks source link

getting "before all" hook error #3449

Closed fmegclark closed 6 years ago

fmegclark commented 6 years ago

Hi, I did not change anything but, a test that was working before is all of a sudden giving me the following error in stack trace: "before all" hook Error: Timeout of 10000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. I tried everything that I could find online but nothing worked. Thank you for your help!

fesebuv commented 6 years ago

It looks like you are running asynchronous code in your assertion or that the code you are trying to assert is taking longer than 10 seconds to run.

Check out the doc for reference https://mochajs.org/#asynchronous-code

fmegclark commented 6 years ago

Hi, Thank you for responding. I did see that and I went and increased the timeout time to 25 seconds but I am still getting the same error. By the way, I ran the same test in a jenkins job and it passes there.

fesebuv commented 6 years ago

do you mind pasting the code to see what the issue may be?

fmegclark commented 6 years ago

Hi, Thanks again for your attention on this. I found out it was an issue with my proxy. I will go ahead and close this issue.

Thanks, again!!!

fesebuv commented 6 years ago

Excellent, you are welcome!

KellyAineah commented 8 months ago

"before all" hook in "{root}"