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 a8f4868acc4 Refactor ClusterContextManagerBuilderTest (#39813)
a8f4868acc4 is described below

commit a8f4868acc421d04306c95c3f173080d6b9e6baf
Author: Liang Zhang <[email protected]>
AuthorDate: Sat Sep 12 19:14:29 2026 +0800

    Refactor ClusterContextManagerBuilderTest (#39813)
---
 .../mode/manager/cluster/ClusterContextManagerBuilderTest.java     | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git 
a/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/ClusterContextManagerBuilderTest.java
 
b/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/ClusterContextManagerBuilderTest.java
index 798a0cc5ea0..c2a1f013ebd 100644
--- 
a/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/ClusterContextManagerBuilderTest.java
+++ 
b/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/ClusterContextManagerBuilderTest.java
@@ -70,12 +70,9 @@ class ClusterContextManagerBuilderTest {
     }
     
     private void assertBuild(final InstanceMetaData instanceMetaData) throws 
SQLException {
-        ContextManager actual = builder.build(new 
ContextManagerBuilderParameter(createModeConfiguration(),
+        ModeConfiguration modeConfig = new ModeConfiguration("CLUSTER", new 
ClusterPersistRepositoryConfiguration("FIXTURE", "", "", new Properties()));
+        ContextManager actual = builder.build(new 
ContextManagerBuilderParameter(modeConfig,
                 Collections.emptyMap(), Collections.emptyMap(), 
Collections.emptyList(), new Properties(), instanceMetaData), 
mock(EventBusContext.class));
         
assertThat(actual.getComputeNodeInstanceContext().getInstance().getMetaData(), 
is(instanceMetaData));
     }
-    
-    private static ModeConfiguration createModeConfiguration() {
-        return new ModeConfiguration("CLUSTER", new 
ClusterPersistRepositoryConfiguration("FIXTURE", "", "", new Properties()));
-    }
 }

Reply via email to