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 4e474f637af Refactor AlgorithmConfigurationTest (#40085)
4e474f637af is described below

commit 4e474f637afec7a09f536b2439aae50699506aab
Author: Liang Zhang <[email protected]>
AuthorDate: Tue Oct 6 23:12:54 2026 +0800

    Refactor AlgorithmConfigurationTest (#40085)
---
 .../infra/algorithm/core/config/AlgorithmConfigurationTest.java        | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/infra/algorithm/core/src/test/java/org/apache/shardingsphere/infra/algorithm/core/config/AlgorithmConfigurationTest.java
 
b/infra/algorithm/core/src/test/java/org/apache/shardingsphere/infra/algorithm/core/config/AlgorithmConfigurationTest.java
index 268413d6bc7..d9a39ad4388 100644
--- 
a/infra/algorithm/core/src/test/java/org/apache/shardingsphere/infra/algorithm/core/config/AlgorithmConfigurationTest.java
+++ 
b/infra/algorithm/core/src/test/java/org/apache/shardingsphere/infra/algorithm/core/config/AlgorithmConfigurationTest.java
@@ -27,7 +27,6 @@ import java.util.stream.Stream;
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.is;
-import static org.hamcrest.Matchers.sameInstance;
 import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
@@ -38,7 +37,7 @@ class AlgorithmConfigurationTest {
         Properties props = new Properties();
         AlgorithmConfiguration actual = new AlgorithmConfiguration("INLINE", 
props);
         assertThat(actual.getType(), is("INLINE"));
-        assertThat(actual.getProps(), sameInstance(props));
+        assertThat(actual.getProps(), is(props));
     }
     
     @Test

Reply via email to