File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -416,6 +416,7 @@ public void testRefreshExternal() {
416
416
ApplicationModel .getEnvironment ().setExternalConfigMap (external );
417
417
ApplicationModel .getEnvironment ().initialize ();
418
418
419
+ ApplicationModel .getEnvironment ().setConfigCenterFirst (true );
419
420
overrideConfig .refresh ();
420
421
421
422
Assertions .assertEquals ("external://127.0.0.1:2181" , overrideConfig .getAddress ());
@@ -453,6 +454,7 @@ public void testRefreshById() {
453
454
454
455
ConfigCenterConfig configCenter = new ConfigCenterConfig ();
455
456
overrideConfig .setConfigCenter (configCenter );
457
+ ApplicationModel .getEnvironment ().setConfigCenterFirst (true );
456
458
// Load configuration from system properties -> externalConfiguration -> RegistryConfig -> dubbo.properties
457
459
overrideConfig .refresh ();
458
460
You can’t perform that action at this time.
0 commit comments