You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by da...@apache.org on 2023/09/11 05:26:48 UTC

[jackrabbit-oak] 12/29: OAK-10199 : fixed the test case with different revision for DetailedGC

This is an automated email from the ASF dual-hosted git repository.

daim pushed a commit to branch DetailedGC/OAK-10199
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit 9981fbde8b57fb058b9ba9580723e78916ec7dc8
Author: Rishabh Kumar <di...@adobe.com>
AuthorDate: Mon Jun 19 23:11:30 2023 +0530

    OAK-10199 : fixed the test case with different revision for DetailedGC
---
 .../jackrabbit/oak/plugins/document/VersionGarbageCollectorIT.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollectorIT.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollectorIT.java
index f6e8554252..80dd47dee6 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollectorIT.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollectorIT.java
@@ -342,7 +342,6 @@ public class VersionGarbageCollectorIT {
 
     // Test when we have more than 1000 deleted properties with different revisions
     @Test
-    @Ignore
     public void testGCDeletedProps_2() throws Exception {
         //1. Create nodes with properties
         NodeBuilder b1 = null;
@@ -356,7 +355,7 @@ public class VersionGarbageCollectorIT {
             }
             store.merge(b1, EmptyHook.INSTANCE, CommitInfo.EMPTY);
             // increase the clock to create new revision for next batch
-            clock.waitUntil(Revision.getCurrentTimestamp() + SECONDS.toMillis(k * 5));
+            clock.waitUntil(Revision.getCurrentTimestamp() + (k * 5));
         }
 
         // enable the detailed gc flag