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/03/25 14:51:18 UTC

[dubbo] branch 3.0 updated: Reset ApplicationModel in MetadataServiceExporterTest (#7442)

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

albumenj pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.0 by this push:
     new 401ac95  Reset ApplicationModel in MetadataServiceExporterTest (#7442)
401ac95 is described below

commit 401ac959a9ad42777528ea173ce34559393329a7
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Thu Mar 25 22:51:06 2021 +0800

    Reset ApplicationModel in MetadataServiceExporterTest (#7442)
---
 .../test/java/org/apache/dubbo/metadata/MetadataServiceExporterTest.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/metadata/MetadataServiceExporterTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/metadata/MetadataServiceExporterTest.java
index aaabe02..6cfc512 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/metadata/MetadataServiceExporterTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/metadata/MetadataServiceExporterTest.java
@@ -41,6 +41,7 @@ public class MetadataServiceExporterTest {
 
     @BeforeAll
     public static void init() {
+        ApplicationModel.reset();
         ApplicationModel.getConfigManager().setApplication(new ApplicationConfig("Test"));
         ApplicationModel.getConfigManager().addRegistry(new RegistryConfig("multicast://224.5.6.7:1234"));
         ApplicationModel.getConfigManager().addProtocol(new ProtocolConfig("injvm"));