Lesson 9: Promise is returning timeout error #890
Unanswered
DorianDaSilva
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Try this: Inside hardhat.config.js, could you check if the following is present? If not, be sure to include it, it will fix it.
Hope this helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
========================================================================================
Error:
Test
"picks a winner, resets the lottery, and sends money"
breaks atawait new Promise(async (resolve, reject) => {}
Solution tested:
https://stackoverflow.com/questions/16607039/in-mocha-testing-while-calling-asynchronous-function-how-to-avoid-the-timeout-er#
Result: Did not work for me or implemented calling
done()
andresolve
wrong.======================================================================================
Code Block: Test
======================================================================================
Has anyone encountered this problem? Or have a solution that would work, plz?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions