You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/05/22 08:47:47 UTC
[dubbo] branch master updated: Fix sync report registry url miss
key (#7827)
This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new aba3519 Fix sync report registry url miss key (#7827)
aba3519 is described below
commit aba351924b5a01df5fd05d679c4f328c59b1c3fc
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Sat May 22 16:47:32 2021 +0800
Fix sync report registry url miss key (#7827)
---
.../apache/dubbo/metadata/store/redis/RedisMetadataReportTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dubbo-metadata/dubbo-metadata-report-redis/src/test/java/org/apache/dubbo/metadata/store/redis/RedisMetadataReportTest.java b/dubbo-metadata/dubbo-metadata-report-redis/src/test/java/org/apache/dubbo/metadata/store/redis/RedisMetadataReportTest.java
index e0303db..a4313bc 100644
--- a/dubbo-metadata/dubbo-metadata-report-redis/src/test/java/org/apache/dubbo/metadata/store/redis/RedisMetadataReportTest.java
+++ b/dubbo-metadata/dubbo-metadata-report-redis/src/test/java/org/apache/dubbo/metadata/store/redis/RedisMetadataReportTest.java
@@ -43,6 +43,7 @@ import java.util.Random;
import static org.apache.dubbo.common.constants.CommonConstants.CONSUMER_SIDE;
import static org.apache.dubbo.common.constants.CommonConstants.PROVIDER_SIDE;
+import static org.apache.dubbo.metadata.report.support.Constants.SYNC_REPORT_KEY;
import static redis.embedded.RedisServer.newRedisServer;
public class RedisMetadataReportTest {
@@ -84,7 +85,8 @@ public class RedisMetadataReportTest {
Assertions.assertNull(exception);
registryUrl = newRedisUrl(usesAuthentication, redisPort);
redisMetadataReport = (RedisMetadataReport) new RedisMetadataReportFactory().createMetadataReport(registryUrl);
- syncRedisMetadataReport = (RedisMetadataReport) new RedisMetadataReportFactory().createMetadataReport(registryUrl);
+ URL syncRegistryUrl = registryUrl.addParameter(SYNC_REPORT_KEY ,"true");
+ syncRedisMetadataReport = (RedisMetadataReport) new RedisMetadataReportFactory().createMetadataReport(syncRegistryUrl);
}
private static boolean usesAuthentication(final TestInfo testInfo) {