Replies: 4 comments 15 replies
-
I also faced the same issue I think you haven't setTimeout for mocha earlier while testing in mocha: {
setTimeout: 500000, // 500 seconds max
} Could you let me know now if you are seeing the same error? Cause for me it's resolved now, after setting this. But note - In Chainlink VRF send at least 5 Link cause 2 Link didn't work for me and the request for random words remained pending. |
Beta Was this translation helpful? Give feedback.
-
And this is still a unit test, not staging test. |
Beta Was this translation helpful? Give feedback.
-
Error: Timeout of 400000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
Hope this will help. |
Beta Was this translation helpful? Give feedback.
-
I also had it on Mocha config but... wasn't helping there...
…On Sun, Jan 21, 2024 at 5:52 PM GEO ***@***.***> wrote:
Thank you, I will test this again.
Just I think I have used on instead of once as well, and I was still
getting timeout error before switching to Foundry. But the timeout settings
was on hardhat config on mocha sequentially set to 200,000 300,000 400,000
and 500,000, still I was getting timeout error
—
Reply to this email directly, view it on GitHub
<#6393 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A24LBGMKQWS4YWGEATVLCZTYPVIW7AVCNFSM6AAAAABBYDIBOGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DEMBQGI3DS>
.
You are receiving this because you commented.Message ID:
<smartcontractkit/full-blockchain-solidity-course-js/repo-discussions/6393/comments/8200269
@github.com>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I give getting
timeout error
each time I run the unit test for the lottery smart contractBelow is the
raffle.test.js :
hardhat-config.js :
Beta Was this translation helpful? Give feedback.
All reactions