Skip to content

Lesson 7: FundMe.test.js fails locally with timeout error #834

Answered by 0xCardiE
0xCardiE asked this question in Q&A
Discussion options

You must be logged in to vote

Problem wasnt that. Just wrong config for

waitConfirmations: network.config.blockConfirmations || 2,

seems that local hardhat just mines one block after trx so if you have anything higher then 1 it never reaches. So this part was wrong and in tests it never reached it so it would time out whatever I put.

thnx for suggestions, hopefully this helps someone else with similar issue.

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

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