There are some updates to test context, which were motivated by the following:
TestContext's API was changed significantly in this commit.
Now, tick(FiniteDuration) is private and we basically copy-paste it using tick() + advanceAndTick(FiniteDuration) in case the duration of the next task is positive and just tick() otherwise. The check is due to a new assertion for a strictly positive FiniteDuration in advanceAndTick(FiniteDuration)
There's now an API for calculating the interval between "now" and the next scheduled task (nextInterval())
There are some updates to test context, which were motivated by the following:
tick(FiniteDuration)
is private and we basically copy-paste it usingtick() + advanceAndTick(FiniteDuration)
in case the duration of the next task is positive and justtick()
otherwise. The check is due to a new assertion for a strictly positiveFiniteDuration
inadvanceAndTick(FiniteDuration)
nextInterval()
)