You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently DeterministicScheduler converts inputs to milliseconds, which can cause unexpected results when tests expect to operate using finer units.
Proposal:
The default unit should remain milliseconds to avoid breaking scheduling over the max value for existing consumers, but we can provide a constructor which takes an alternate TimeUnit.
The text was updated successfully, but these errors were encountered:
carterkozak
added a commit
to carterkozak/jmock-library
that referenced
this issue
Feb 28, 2020
…e tick precision
This change adds a constructor which takes a TimeUnit for custom
precision, but does not modify the default constructor in order to
avoid breaking existing tests which could overflow a long using
very long periods of time.
This prevents us from attempting to go back in time. Without allowing
small time-slip we can build confidence that new functionality doesn't
cause us to regress.
Fork will be unnecessary if the upstream fix is accepted:
jmock-developers/jmock-library#172jmock-developers/jmock-library#173
This prevents us from attempting to go back in time. Without allowing
small time-slip we can build confidence that new functionality doesn't
cause us to regress.
Fork will be unnecessary if the upstream fix is accepted:
jmock-developers/jmock-library#172jmock-developers/jmock-library#173
Currently DeterministicScheduler converts inputs to milliseconds, which can cause unexpected results when tests expect to operate using finer units.
Proposal:
The default unit should remain milliseconds to avoid breaking scheduling over the max value for existing consumers, but we can provide a constructor which takes an alternate TimeUnit.
The text was updated successfully, but these errors were encountered: