Error: Timeout of 40000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves #4940
-
my code is developmentChains.includes(network.name)
my github repo is https://github.com/umairahmed88/smartcontract-lottery I got this error Error: Timeout of 40000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 25 replies
-
Hello @umairahmed88, there is a small problem in your Let me know how it goes. |
Beta Was this translation helpful? Give feedback.
-
Hello @umairahmed88 It seems like Goerli network is currently down. You should try same later. |
Beta Was this translation helpful? Give feedback.
Hello @umairahmed88, there is a small problem in your
hardhat.config
file. Themocha
config is inside thenamedAccounts
config, and for this reason is not being accessed by hardhat and the test is running with the default time of40000
ms which is too low for this staging test.Let me know how it goes.