[
https://issues.apache.org/jira/browse/GERONIMO-6805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17778710#comment-17778710
]
Francois Papon commented on GERONIMO-6805:
------------------------------------------
[~fguillaume] thank you for the PR!
> Use a time SPI abstraction to provide time to the transaction manager
> ---------------------------------------------------------------------
>
> Key: GERONIMO-6805
> URL: https://issues.apache.org/jira/browse/GERONIMO-6805
> Project: Geronimo
> Issue Type: Improvement
> Security Level: public(Regular issues)
> Components: transaction manager
> Reporter: Florent Guillaume
> Assignee: Francois Papon
> Priority: Minor
> Fix For: TxManager-4.0.1
>
>
> Currently the {{TransactionImpl}} uses (indirectly)
> {{System.currentTimeMillis()}} to decide if a transaction has timed out.
> To allow for better unit testing, it would be beneficial to introduce an
> abstraction of the time provider so that unit tests can plug custom
> time-resolving implementations and avoid {{Thread.sleep().}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)