Skip to content

fix #172: DeterministicScheduler supports customizable tick precision#173

Merged
olibye merged 4 commits into
jmock-developers:masterfrom
carterkozak:ckozak/gh172
Aug 12, 2025
Merged

fix #172: DeterministicScheduler supports customizable tick precision#173
olibye merged 4 commits into
jmock-developers:masterfrom
carterkozak:ckozak/gh172

Conversation

@carterkozak

Copy link
Copy Markdown
Contributor

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.

…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.
carterkozak added a commit to palantir/dialogue that referenced this pull request Feb 28, 2020
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#172
jmock-developers/jmock-library#173
carterkozak added a commit to palantir/dialogue that referenced this pull request Feb 28, 2020
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#172
jmock-developers/jmock-library#173
@olibye

olibye commented Mar 16, 2024

Copy link
Copy Markdown
Member

I'm thinking ticks could be a java.time.Duration

@olibye olibye added this pull request to the merge queue Aug 12, 2025
Merged via the queue into jmock-developers:master with commit eec8ee9 Aug 12, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants