I deployed contracts to kovan testnet, but I have certain places where there is a 1 week duration. How do I speed up time on testnet so I can easily test these things? (For example speeding it up to be 10 seconds duration instead
2 Answers
You can't influence the network itself, since it's not under your control. So what you need to do is either change your contract's duration or test in local blockchain where you can modify time. Local testing is by far the better option, and you'll need that anyway when you write unit tests for your contracts.
You should test your contract in a local environment.
Ganache has a number of tools to help you with these kind of tests like advanceTimeAndBlock.
Check the documentation of the time machine here: https://github.com/ejwessel/GanacheTimeTraveler
I would use hardhat to have a complete suite of tools (including ganache):