This is an automated email from the ASF dual-hosted git repository.
duanzhengqiang 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 abeb4619b41 Refactor AuthorityRuleTest (#29563)
abeb4619b41 is described below
commit abeb4619b41602f8e3bdd5adcc8ccccc4d69c5a1
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Dec 27 13:08:57 2023 +0800
Refactor AuthorityRuleTest (#29563)
---
.../org/apache/shardingsphere/authority/rule/AuthorityRuleTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/kernel/authority/core/src/test/java/org/apache/shardingsphere/authority/rule/AuthorityRuleTest.java
b/kernel/authority/core/src/test/java/org/apache/shardingsphere/authority/rule/AuthorityRuleTest.java
index 0d22b203a76..b5cdd02cb46 100644
---
a/kernel/authority/core/src/test/java/org/apache/shardingsphere/authority/rule/AuthorityRuleTest.java
+++
b/kernel/authority/core/src/test/java/org/apache/shardingsphere/authority/rule/AuthorityRuleTest.java
@@ -58,6 +58,7 @@ class AuthorityRuleTest {
Collection<ShardingSphereUser> users = new LinkedList<>();
users.add(new ShardingSphereUser("root", "root", "localhost"));
users.add(new ShardingSphereUser("admin", "123456", "localhost"));
- return new AuthorityRule(new AuthorityRuleConfiguration(users, new
AlgorithmConfiguration("FIXTURE", new Properties()), null));
+ AuthorityRuleConfiguration ruleConfig = new
AuthorityRuleConfiguration(users, new AlgorithmConfiguration("FIXTURE", new
Properties()), null);
+ return new AuthorityRule(ruleConfig);
}
}