Error: Timeout of 300000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise #2676
-
While running a test on this {it} , i get this error ERROR
raffle.test.js
hardhat.config.js
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 14 replies
-
Hey @ippy1997 try and increase the timeout value and see if it works. Try 500000 |
Beta Was this translation helpful? Give feedback.
-
raffle.once("WinnerPicked", async () => {
console.log("Found the event") The above console.log does not show up, which signifies our event listener for the winner being picked not occurring within the specified timeframe; this is why it leads to a time-out and not either a reject or a resolve. Firstly, increase timeout to 5mins; if it still persists, you can diagnose the logic to account for the above. |
Beta Was this translation helpful? Give feedback.
-
Change your config file settings to goerli and try again, Rinkeby isnt helping much these days.. |
Beta Was this translation helpful? Give feedback.
Hey @ippy1997 try and increase the timeout value and see if it works. Try 500000