Skip to content

Can't change the blockchain time #61

@guqoliveira28

Description

@guqoliveira28

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions