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:08:13 UTC
[dubbo-samples] branch master updated: clear system properties
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 b0af4e81 clear system properties
new ee388b30 Merge pull request #613 from CrazyHZM/clear_system_properties
b0af4e81 is described below
commit b0af4e817a346f9debfcd86716fd6c5d199e17da
Author: crazyhzm <cr...@apache.org>
AuthorDate: Tue Dec 6 13:52:51 2022 +0800
clear system properties
Signed-off-by: crazyhzm <cr...@apache.org>
---
.../test/java/org/apache/dubbo/demo/consumer/DemoServiceConfigIT.java | 2 ++
.../dubbo-samples-cloud-native/dubbo-servicediscovery-migration/pom.xml | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
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 d1853f12..2a7fac56 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,6 +38,7 @@ public class DemoServiceConfigIT {
@After
public void teardown() {
System.clearProperty("dubbo.application.service-discovery.migration");
+ applicationModel.getModelEnvironment().getSystemConfiguration().clearCache();
}
@BeforeClass
@@ -97,6 +98,7 @@ 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();
DemoService demoServiceFromNormal = buildNormal(null);
DemoService demoServiceFromService = buildService(null);
diff --git a/2-advanced/dubbo-samples-cloud-native/dubbo-servicediscovery-migration/pom.xml b/2-advanced/dubbo-samples-cloud-native/dubbo-servicediscovery-migration/pom.xml
index 7bed22f6..64e7f5fb 100644
--- a/2-advanced/dubbo-samples-cloud-native/dubbo-servicediscovery-migration/pom.xml
+++ b/2-advanced/dubbo-samples-cloud-native/dubbo-servicediscovery-migration/pom.xml
@@ -38,7 +38,7 @@
<properties>
<source.level>1.8</source.level>
<target.level>1.8</target.level>
- <dubbo.version>3.0.7</dubbo.version>
+ <dubbo.version>3.1.4-SNAPSHOT</dubbo.version>
<spring.version>4.3.16.RELEASE</spring.version>
<junit.version>4.12</junit.version>
<maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org