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

yuqi4733 pushed a commit to branch 
cherry-pick-branch-1.1-efec2f85ec6f3a201c4b1495760c8fbb25bdaa9d
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to 
refs/heads/cherry-pick-branch-1.1-efec2f85ec6f3a201c4b1495760c8fbb25bdaa9d by 
this push:
     new 4c68218e16 fix test error
4c68218e16 is described below

commit 4c68218e16e8c126a57ce579202539fc83694918
Author: yuqi <[email protected]>
AuthorDate: Thu Jan 15 22:06:26 2026 +0800

    fix test error
---
 .../test/java/org/apache/gravitino/storage/TestEntityStorage.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/core/src/test/java/org/apache/gravitino/storage/TestEntityStorage.java 
b/core/src/test/java/org/apache/gravitino/storage/TestEntityStorage.java
index 890959268a..3a36c44433 100644
--- a/core/src/test/java/org/apache/gravitino/storage/TestEntityStorage.java
+++ b/core/src/test/java/org/apache/gravitino/storage/TestEntityStorage.java
@@ -62,8 +62,10 @@ public class TestEntityStorage extends 
AbstractEntityStorageTest {
 
   @ParameterizedTest
   @MethodSource("storageProvider")
-  void testRestart(String type) throws IOException {
+  void testRestart(String type, boolean enableCache) throws IOException, 
IllegalAccessException {
     Config config = Mockito.mock(Config.class);
+    Mockito.when(config.get(Configs.CACHE_ENABLED)).thenReturn(enableCache);
+
     init(type, config);
     AuditInfo auditInfo =
         
AuditInfo.builder().withCreator("creator").withCreateTime(Instant.now()).build();
@@ -361,7 +363,7 @@ public class TestEntityStorage extends 
AbstractEntityStorageTest {
 
   @ParameterizedTest
   @MethodSource("storageProvider")
-  void testEntityDelete(String type) throws IOException {
+  void testEntityDelete(String type, boolean enableCache) throws IOException, 
IllegalAccessException {
     Config config = Mockito.mock(Config.class);
     Mockito.when(config.get(Configs.CACHE_ENABLED)).thenReturn(enableCache);
     init(type, config);

Reply via email to