matter-labs / era-tutorial-examples

[DEPRECATED ]Full examples for tutorials in the zkSync Era documentation. Visit: https://github.com/matter-labs/tutorials
https://github.com/matter-labs/tutorials
MIT License
129 stars 76 forks source link

tests time out because `before` function takes too long. #37

Open Throvn opened 2 years ago

Throvn commented 2 years ago

The test will fail with the following error message:

1) "before all" hook: Fund the wallet for "Should return the new greeting once it's changed"

Although everything is fine because, the deposit takes too long to finish. My current workaround is:

before("Fund the wallet", async () => {
        deployer = new Deployer(hre, new Wallet(RICH_WALLET_PK));
});

This issue could be bypassed by increasing the mocha timeout.