Change current time of EVM in tests

Basically always accept a time argument to your function, defaulting to now. Then you just pass in a constant time within your test.

10 Likes