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

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

commit 6f1bd84901befcf0e678a1048a5fc4546604c2f1
Author: Jose Cordero <[email protected]>
AuthorDate: Mon Nov 17 20:18:52 2025 +0100

    OAK-12011: add sleep to avoid backgroundPurge to interfere with tests
---
 .../jackrabbit/oak/plugins/document/BranchCommitGCTest.java       | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git 
a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/BranchCommitGCTest.java
 
b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/BranchCommitGCTest.java
index 6cee643e5d..320afd67c7 100644
--- 
a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/BranchCommitGCTest.java
+++ 
b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/BranchCommitGCTest.java
@@ -540,7 +540,13 @@ public class BranchCommitGCTest {
         RevisionVector br = unmergedBranchCommit(b -> 
b.child("foo").removeProperty("a"));
         mergedBranchCommit(b -> b.child("foo").setProperty("c", "d"));
         store.runBackgroundOperations();
-
+        // OAK-12011 : adding a temporary sleep to reduce likelyhood of
+        // backgroundPurge to interfere with test
+        try {
+            Thread.sleep(1000);
+        } catch (InterruptedException e) {
+            fail("got interrupted");
+        }
         // wait two hours
         clock.waitUntil(clock.getTime() + HOURS.toMillis(2));
         // clean everything older than one hour

Reply via email to