Skip to content

Commit

Permalink
Fix ut for AbstractConfigTest
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ committed Jun 8, 2021
1 parent 6f9beb6 commit e8eeddb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ public void testRefreshExternal() {
ApplicationModel.getEnvironment().setExternalConfigMap(external);
ApplicationModel.getEnvironment().initialize();

ApplicationModel.getEnvironment().setConfigCenterFirst(true);
overrideConfig.refresh();

Assertions.assertEquals("external://127.0.0.1:2181", overrideConfig.getAddress());
Expand Down Expand Up @@ -453,6 +454,7 @@ public void testRefreshById() {

ConfigCenterConfig configCenter = new ConfigCenterConfig();
overrideConfig.setConfigCenter(configCenter);
ApplicationModel.getEnvironment().setConfigCenterFirst(true);
// Load configuration from system properties -> externalConfiguration -> RegistryConfig -> dubbo.properties
overrideConfig.refresh();

Expand Down

0 comments on commit e8eeddb

Please sign in to comment.