smartcontractkit / hardhat-starter-kit

A repo for boilerplate code for testing, deploying, and shipping chainlink solidity code.
MIT License
1.21k stars 491 forks source link

Add evm_mine to Keepers tests #95

Closed colinsteidtmann closed 2 years ago

colinsteidtmann commented 2 years ago

I think you should add the line await network.provider.send("evm_mine"); below evm_increaseTime, on the typescript keepers test file.

Or at least that's what I had to do on my local file to make the time increase have any real effect.

Reference: https://ethereum.stackexchange.com/questions/86633/time-dependent-tests-with-hardhat

PatrickAlphaC commented 2 years ago

Ohhhh!! Yes! Great issue. Labeled as good first issue.

adityabhattad2021 commented 2 years ago

Is this still open? (I sent a PR)