[ 
https://issues.apache.org/jira/browse/OAK-6017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marcel Reutegger resolved OAK-6017.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.7.0

Done in trunk: http://svn.apache.org/r1789928

> Reset timestamps on Revision.setClock()
> ---------------------------------------
>
>                 Key: OAK-6017
>                 URL: https://issues.apache.org/jira/browse/OAK-6017
>             Project: Jackrabbit Oak
>          Issue Type: Test
>          Components: documentmk
>            Reporter: Marcel Reutegger
>            Assignee: Marcel Reutegger
>            Priority: Minor
>             Fix For: 1.7.0, 1.8
>
>
> Revision.setClock() is used for tests only. E.g. when a virtual clock should 
> be used in a test. Revision.setClock() only resets the timestamps 
> ({{lastTimestamp}} and {{lastRevisionTimestamp}}) only when the clock is 
> reset to the default. The method should also reset the timestamps when any 
> other clock is set for a test. Otherwise the timestamps may be newer than the 
> current time of the clock in use.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to