Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't change the blockchain time #61

Open
guqoliveira28 opened this issue Feb 8, 2024 · 2 comments
Open

Can't change the blockchain time #61

guqoliveira28 opened this issue Feb 8, 2024 · 2 comments

Comments

@guqoliveira28
Copy link

Hi!

I'm having a problem when trying to increase blockchain time to test a vesting smart contract.

...
// beforeAll
blockchain = await Chain.setupChain("TLOS");
...

// test: after calling an action on the smart contract
await blockchain.time.increase(5);

When running this test, I get this error:
Exceeded 15 tries to change the blockchain time. Test cannot proceed.

These are the packages versions:

"jest": "^28.1.3",
"qtest-js": "^1.0.0"

I'm running on Linux Mint 21.2 x86_64, package base Ubuntu Jammy.
I'm running a docker container with the image songmai108/qtest:v4.0.4

Is there any setup step that I am missing?

Thank you for the framework and for the support!

@quocle108
Copy link
Contributor

@guqoliveira28 i saw this issue. There is an issue with node version v4.0.4 that it couldn't restart the node after adjusting the system time ahead. We're planning to upgrade to new version of leap once it is available to resolve this issue

@guqoliveira28
Copy link
Author

Thank you @quocle108
Is there any alternative for this issue or we should wait for an update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@quocle108 @guqoliveira28 and others