You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2024/01/01 09:06:52 UTC
(shardingsphere) branch master updated: Refactor AuthorityRuleTest (#29617)
This is an automated email from the ASF dual-hosted git repository.
panjuan 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 50d9391340c Refactor AuthorityRuleTest (#29617)
50d9391340c is described below
commit 50d9391340c81d87cd5fb43e97bf843c97914f22
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Mon Jan 1 17:06:46 2024 +0800
Refactor AuthorityRuleTest (#29617)
---
.../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 a1a1a31e8bd..fe84b5a2598 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 {
private AuthorityRule createAuthorityRule() {
Collection<ShardingSphereUser> users = Arrays.asList(new ShardingSphereUser("root", "root", "localhost"), new ShardingSphereUser("admin", "123456", "localhost"));
AlgorithmConfiguration privilegeProvider = new AlgorithmConfiguration("FIXTURE", new Properties());
- return new AuthorityRule(new AuthorityRuleConfiguration(users, privilegeProvider, Collections.emptyMap(), null));
+ AuthorityRuleConfiguration ruleConfig = new AuthorityRuleConfiguration(users, privilegeProvider, Collections.emptyMap(), null);
+ return new AuthorityRule(ruleConfig);
}
}