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
test(checkin): Pin the check-in duration to the options ticker (JAVA-576)
The duration was measured off System.nanoTime() directly, so a test could
only assert it was some nonzero float. Now that the clock arrives through
SentryOptions.getMonotonicTicker(), a test can hand the check-in path a
ticker it controls and assert an exact value.
Two paths are worth pinning: the callable returning normally, where only the
terminal check-in carries a duration and the IN_PROGRESS one does not, and
the callable throwing, where the finally block still has to report the time
that passed. Both fail against the pre-refactor code.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments