You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/04/18 08:55:05 UTC

[GitHub] [shardingsphere] strongduanmu commented on a diff in pull request #16892: Restructure metadata node to support PG Three-tier structure.

strongduanmu commented on code in PR #16892:
URL: https://github.com/apache/shardingsphere/pull/16892#discussion_r851984666


##########
shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/registry/cache/subscriber/ScalingRegistrySubscriberTest.java:
##########
@@ -34,26 +34,20 @@ public final class ScalingRegistrySubscriberTest {
     private ClusterPersistRepository repository;
     
     @Mock
-    private SchemaVersionPersistService schemaVersionPersistService;
+    private DatabaseVersionPersistService databaseVersionPersistService;
     
     private ScalingRegistrySubscriber scalingRegistrySubscriber;
     
     @Before
     public void setUp() throws ReflectiveOperationException {
         scalingRegistrySubscriber = new ScalingRegistrySubscriber(repository);
-        Field persistServiceField = ScalingRegistrySubscriber.class.getDeclaredField("schemaVersionPersistService");
+        Field persistServiceField = ScalingRegistrySubscriber.class.getDeclaredField("databaseVersionPersistService");
         persistServiceField.setAccessible(true);
-        persistServiceField.set(scalingRegistrySubscriber, schemaVersionPersistService);
+        persistServiceField.set(scalingRegistrySubscriber, databaseVersionPersistService);
     }
     
     @Test
     public void assertCacheRuleConfiguration() {
         // TODO finish test case
     }
-    

Review Comment:
   Why comment this code?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org