Skip to content

Error: Timeout of 40000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves #4940

Answered by pacelliv
umairahmed88 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @umairahmed88, there is a small problem in your hardhat.config file. The mocha config is inside the namedAccounts config, and for this reason is not being accessed by hardhat and the test is running with the default time of 40000 ms which is too low for this staging test.

Let me know how it goes.

Replies: 2 comments 25 replies

Comment options

You must be logged in to vote
22 replies
@IceCreamSandwich98
Comment options

@Nlferu
Comment options

@umairahmed88
Comment options

@umairahmed88
Comment options

@Nlferu
Comment options

Answer selected by umairahmed88
Comment options

You must be logged in to vote
3 replies
@umairahmed88
Comment options

@umair-sidd
Comment options

@Nlferu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants