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

terrymanu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 92c4c8ed618 Refactor ShardingSphereMetaDataTest (#39303)
92c4c8ed618 is described below

commit 92c4c8ed6180abc919758cc03428d5ef0688b9ac
Author: Liang Zhang <[email protected]>
AuthorDate: Sat Aug 1 15:53:05 2026 +0800

    Refactor ShardingSphereMetaDataTest (#39303)
---
 .../shardingsphere/infra/metadata/ShardingSphereMetaDataTest.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/infra/common/src/test/java/org/apache/shardingsphere/infra/metadata/ShardingSphereMetaDataTest.java
 
b/infra/common/src/test/java/org/apache/shardingsphere/infra/metadata/ShardingSphereMetaDataTest.java
index 92bc9d17bdf..742fa963917 100644
--- 
a/infra/common/src/test/java/org/apache/shardingsphere/infra/metadata/ShardingSphereMetaDataTest.java
+++ 
b/infra/common/src/test/java/org/apache/shardingsphere/infra/metadata/ShardingSphereMetaDataTest.java
@@ -217,7 +217,8 @@ class ShardingSphereMetaDataTest {
     @Test
     void assertCloseClosesAllRules() throws Exception {
         GlobalRule closableGlobalRule = mock(GlobalRule.class, 
withSettings().extraInterfaces(AutoCloseable.class));
-        ShardingSphereDatabase database = 
mockDatabase(mock(ResourceMetaData.class), new MockedDataSource(), 
mock(ShardingSphereRule.class));
+        MockedDataSource dataSource = new MockedDataSource();
+        ShardingSphereDatabase database = 
mockDatabase(mock(ResourceMetaData.class), dataSource, 
mock(ShardingSphereRule.class));
         ShardingSphereMetaData metaData = new ShardingSphereMetaData(
                 Collections.singleton(database), mock(), new 
RuleMetaData(Collections.singleton(closableGlobalRule)), new 
ConfigurationProperties(new Properties()));
         metaData.close();

Reply via email to