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

zhangliang 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 2676ffe6232 Refactor AlgorithmChangedProcessorTest (#33488)
2676ffe6232 is described below

commit 2676ffe6232672e7ea4af56af8deea0e2960b4c3
Author: Liang Zhang <[email protected]>
AuthorDate: Fri Nov 1 02:17:41 2024 +0800

    Refactor AlgorithmChangedProcessorTest (#33488)
---
 .../shardingsphere/mode/processor/AlgorithmChangedProcessorTest.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/mode/core/src/test/java/org/apache/shardingsphere/mode/processor/AlgorithmChangedProcessorTest.java
 
b/mode/core/src/test/java/org/apache/shardingsphere/mode/processor/AlgorithmChangedProcessorTest.java
index b1ee1375479..cbbe1fe245e 100644
--- 
a/mode/core/src/test/java/org/apache/shardingsphere/mode/processor/AlgorithmChangedProcessorTest.java
+++ 
b/mode/core/src/test/java/org/apache/shardingsphere/mode/processor/AlgorithmChangedProcessorTest.java
@@ -48,7 +48,8 @@ class AlgorithmChangedProcessorTest {
     
     @Test
     void assertSwapRuleItemConfiguration() {
-        AlgorithmConfiguration actual = 
processor.swapRuleItemConfiguration(new AlterNamedRuleItemEvent("", "foo", "", 
"", ""), createYAMLContent());
+        AlterNamedRuleItemEvent event = new AlterNamedRuleItemEvent("", "foo", 
"", "", "");
+        AlgorithmConfiguration actual = 
processor.swapRuleItemConfiguration(event, createYAMLContent());
         assertThat(actual, deepEqual(new AlgorithmConfiguration("foo_algo", 
new Properties())));
     }
     

Reply via email to