You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2022/03/28 02:17:03 UTC

[shardingsphere] branch master updated: Add unit test for GlobalLockNode.getGlobalAckNodePath in GlobalLockNodeTest class (#16423)

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

zhaojinchao 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 13c24eb  Add unit test for GlobalLockNode.getGlobalAckNodePath in GlobalLockNodeTest class (#16423)
13c24eb is described below

commit 13c24eb06bb011b103514495eb17c2ecd46d78e9
Author: ntsompa <72...@users.noreply.github.com>
AuthorDate: Mon Mar 28 05:15:44 2022 +0300

    Add unit test for GlobalLockNode.getGlobalAckNodePath in GlobalLockNodeTest class (#16423)
---
 .../cluster/coordinator/future/lock/service/GlobalLockNodeTest.java  | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/future/lock/service/GlobalLockNodeTest.java b/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/future/lock/service/GlobalLockNodeTest.java
index 446b13b..0c42724 100644
--- a/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/future/lock/service/GlobalLockNodeTest.java
+++ b/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/future/lock/service/GlobalLockNodeTest.java
@@ -40,4 +40,9 @@ public final class GlobalLockNodeTest {
         assertTrue(lockName.isPresent());
         assertThat(lockName.get(), is("schema-127.0.0.1@3308"));
     }
+
+    @Test
+    public void assertGetGlobalAckNodePath() {
+        assertThat(GlobalLockNode.getGlobalAckNodePath(), is("/lock/global/ack"));
+    }
 }