You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by cr...@apache.org on 2022/12/06 06:52:27 UTC

[dubbo-samples] branch master updated: Compatible with 3.0

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

crazyhzm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git


The following commit(s) were added to refs/heads/master by this push:
     new cbf9ea99 Compatible with 3.0
     new 4595e117 Merge pull request #614 from CrazyHZM/clear_system_properties
cbf9ea99 is described below

commit cbf9ea99550ba7d89bf942ff752920611c4dc93f
Author: crazyhzm <cr...@apache.org>
AuthorDate: Tue Dec 6 14:51:35 2022 +0800

    Compatible with 3.0
    
    Signed-off-by: crazyhzm <cr...@apache.org>
---
 .../org/apache/dubbo/demo/consumer/DemoServiceConfigIT.java  | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/2-advanced/dubbo-samples-cloud-native/dubbo-servicediscovery-migration/dubbo-servicediscovery-migration-consumer/src/test/java/org/apache/dubbo/demo/consumer/DemoServiceConfigIT.java b/2-advanced/dubbo-samples-cloud-native/dubbo-servicediscovery-migration/dubbo-servicediscovery-migration-consumer/src/test/java/org/apache/dubbo/demo/consumer/DemoServiceConfigIT.java
index 2a7fac56..6b29938f 100644
--- a/2-advanced/dubbo-samples-cloud-native/dubbo-servicediscovery-migration/dubbo-servicediscovery-migration-consumer/src/test/java/org/apache/dubbo/demo/consumer/DemoServiceConfigIT.java
+++ b/2-advanced/dubbo-samples-cloud-native/dubbo-servicediscovery-migration/dubbo-servicediscovery-migration-consumer/src/test/java/org/apache/dubbo/demo/consumer/DemoServiceConfigIT.java
@@ -38,7 +38,11 @@ public class DemoServiceConfigIT {
     @After
     public void teardown() {
         System.clearProperty("dubbo.application.service-discovery.migration");
-        applicationModel.getModelEnvironment().getSystemConfiguration().clearCache();
+        try {
+            applicationModel.getModelEnvironment().getSystemConfiguration().clearCache();
+        }catch (Exception e){
+
+        }
     }
 
     @BeforeClass
@@ -98,7 +102,11 @@ public class DemoServiceConfigIT {
     public void testApplicationConfig1() throws InterruptedException {
         // Application level config (default:APPLCIATION_FIRST)
         System.clearProperty("dubbo.application.service-discovery.migration");
-        applicationModel.getModelEnvironment().getSystemConfiguration().clearCache();
+        try {
+            applicationModel.getModelEnvironment().getSystemConfiguration().clearCache();
+        }catch (Exception e){
+
+        }
 
         DemoService demoServiceFromNormal = buildNormal(null);
         DemoService demoServiceFromService = buildService(null);


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org