Skip to content

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

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

You must be logged in to vote

I calculate time taken to catch WinnerPicked event in my etherscan and it exceeded 40000ms(40s) because of automation of 30s + 40-50s for generating request id which was greater than 40000ms.
So i increased the timeout for fulFillRandomWords to 120000ms(120s).
It worked.

outPut:

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by aman879
Comment options

You must be logged in to vote
1 reply
@aman879
Comment options

Comment options

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