You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Davide Giannella (JIRA)" <ji...@apache.org> on 2017/05/30 08:39:21 UTC

[jira] [Closed] (OAK-6017) Reset timestamps on Revision.setClock()

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

Davide Giannella closed OAK-6017.
---------------------------------

Bulk close for 1.7.0

> 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)