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 2026/06/18 18:46:25 UTC

(jackrabbit-oak) branch OAK-12241 updated: OAK-12241 : fixed test cases

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

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


The following commit(s) were added to refs/heads/OAK-12241 by this push:
     new e1fbaf74f1 OAK-12241 : fixed test cases
e1fbaf74f1 is described below

commit e1fbaf74f17479ceecf95683e2e7005a7b3e0f6b
Author: rishabhdaim <ri...@gmail.com>
AuthorDate: Fri Jun 19 00:16:13 2026 +0530

    OAK-12241 : fixed test cases
---
 .../apache/jackrabbit/oak/blob/cloud/s3/TestS3DsCacheOff.java    | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/oak-blob-cloud/src/test/java/org/apache/jackrabbit/oak/blob/cloud/s3/TestS3DsCacheOff.java b/oak-blob-cloud/src/test/java/org/apache/jackrabbit/oak/blob/cloud/s3/TestS3DsCacheOff.java
index eea9f30cfd..3481f60843 100644
--- a/oak-blob-cloud/src/test/java/org/apache/jackrabbit/oak/blob/cloud/s3/TestS3DsCacheOff.java
+++ b/oak-blob-cloud/src/test/java/org/apache/jackrabbit/oak/blob/cloud/s3/TestS3DsCacheOff.java
@@ -51,16 +51,17 @@ public class TestS3DsCacheOff extends TestS3Ds {
         try {
             doDeleteRecordTest();
         } catch (Exception e) {
-            org.junit.Assert.fail(e.getMessage());
+            throw new RuntimeException(e);
         }
     }
 
     // S3Backend updates duplicate records via CopyObject (copy-to-self). S3Mock does not
-    // support that operation, so this test cannot run against the emulator with cache off.
+    // support that operation, so this test cannot run against the emulator.
     @Override
+    @Test
     public void testAddDuplicateRecord() {
-        Assume.assumeFalse("S3Mock does not support CopyObject used by S3Backend for duplicate record updates",
-                S3EmulatorSupport.isAvailable());
+        Assume.assumeTrue("S3Mock does not support CopyObject used by S3Backend for duplicate record updates",
+                !S3EmulatorSupport.isAvailable());
         super.testAddDuplicateRecord();
     }
 }