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 <[email protected]>
AuthorDate: Tue Dec 6 14:51:35 2022 +0800
Compatible with 3.0
Signed-off-by: crazyhzm <[email protected]>
---
.../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: [email protected]
For additional commands, e-mail: [email protected]