Description
Problem: sometimes, we might want to test scenarios where we need to advance time by some given number of seconds.
We've needed this in stablecoin and tezos-nbit before, and we're seeing the need for this again in BaseDAO.
Additionally, in tezos-nbit we've also needed to know what the current
time is. In Integrational
, we can just use dummyNow
, but there's no
way to do this in Morley.Nettest at the moment.
Solution: Add getNow
and advanceTime
to Morley.Nettest.
Related issue(s)
Resolves #351 (closed) Resolves part of #53 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Diogo Castro