# Test Helpers Time module with hardhat mainnet fork

**URL:** <https://forum.openzeppelin.com/t/test-helpers-time-module-with-hardhat-mainnet-fork/12472>\
**Category:** Support\
**Created:** [July 14, 2021, 2:35pm UTC](https://forum.openzeppelin.com/t/test-helpers-time-module-with-hardhat-mainnet-fork/12472 "2021-07-14T14:35:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![crypto\_corgi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/crypto_corgi/32/7603_2.png) [@crypto\_corgi](https://forum.openzeppelin.com/u/crypto_corgi)\
**Post date:** [July 14, 2021, 2:35pm UTC](https://forum.openzeppelin.com/t/test-helpers-time-module-with-hardhat-mainnet-fork/12472/1 "2021-07-14T14:35:04Z")

</div>

I am writing tests for a time dependent contract with `test-helpers` from OpenZeppelin. I am testing against the hardhat mainnet fork. When I use any of the `time` functions like `advanceBlock()` or `increaseTo()` I am getting the `Error: Invalid JSON RPC response: ""`. To be precise I am using the `await time.latest()` line. Any suggestion what could be wrong with this?

Thank you.

---

<div class="post-metadata">

**Author:** ![frangio](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/frangio/32/15251_2.png) [@frangio](https://forum.openzeppelin.com/u/frangio)\
**Post date:** [July 14, 2021, 10:09pm UTC](https://forum.openzeppelin.com/t/test-helpers-time-module-with-hardhat-mainnet-fork/12472/2 "2021-07-14T22:09:45Z")

</div>

Can you ask in [Hardhat’s Support Discord](https://hardhat.org/discord)? It sounds more like a bug in Hardhat but if it is a bug in Test Helpers let us know.
