# Getting Constructor call issue while testing using OpenZeppelin Test Environment

**URL:** <https://forum.openzeppelin.com/t/getting-constructor-call-issue-while-testing-using-openzeppelin-test-environment/4173>\
**Category:** Support\
**Created:** [October 18, 2020, 10:31am UTC](https://forum.openzeppelin.com/t/getting-constructor-call-issue-while-testing-using-openzeppelin-test-environment/4173 "2020-10-18T10:31:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [October 19, 2020, 10:37am UTC](https://forum.openzeppelin.com/t/getting-constructor-call-issue-while-testing-using-openzeppelin-test-environment/4173/2 "2020-10-19T10:37:38Z")

</div>

Hi @viraj124,

OpenZeppelin Test Environment spins up a local ganache instance.

For testing with fork, see the following: [How to use mainnet forking in solidity tests](https://forum.openzeppelin.com/t/how-to-use-mainnet-forking-in-solidity-tests/4175/2)

For simulating the passing of time with OpenZeppelin Test Environment you can use OpenZeppelin Test Helpers: [https://docs.openzeppelin.com/test-helpers/0.5/api#time](https://docs.openzeppelin.com/test-helpers/0.5/api#time) rather than `ganache-time-traveler`.

I don’t see anything else obvious in your test. Are you able to share a snippet of the contract that you are trying to test so I can try to reproduce?

---

_[View the full topic](https://forum.openzeppelin.com/t/getting-constructor-call-issue-while-testing-using-openzeppelin-test-environment/4173)._
