Skip to content

Lesson 9/Unit test: Error: Timeout of 2400000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. #6619

Answered by TucanCrypto
TucanCrypto asked this question in Q&A
Discussion options

You must be logged in to vote

Eventually, it works I don't why but it works. It's only necessary changing the last test. As well as, I don't know how I solve most of the errors and why there's two catch and why the second is executed before than the first but that's the solution for me:

it("picks a winner, resets the lottery and sends money", async function () {
                  const additionalEntrance = 3
                  const startingAccountIndex = 1
                  const accounts = await ethers.getSigners()
                  for (
                      let i = startingAccountIndex;
                      i < startingAccountIndex + additionalEntrance;
                      i++
                  ) {

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by TucanCrypto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant