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 "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2014/01/29 11:34:09 UTC

[jira] [Commented] (OAK-1365) RevisionTest.difference() fails occasionally

    [ https://issues.apache.org/jira/browse/OAK-1365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13885206#comment-13885206 ] 

Marcel Reutegger commented on OAK-1365:
---------------------------------------

I think the test should only verify that the timestamps of two revisions are different when it is guaranteed they are different. On some systems System.currentTimeMillis() will return the same value even after a Thread.sleep(2).

See also JCR-3710 for a similar issue with a test.

> RevisionTest.difference() fails occasionally
> --------------------------------------------
>
>                 Key: OAK-1365
>                 URL: https://issues.apache.org/jira/browse/OAK-1365
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Marcel Reutegger
>            Priority: Minor
>
> As reported on the dev list, the test fails occasionally.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)