Skip to content

Commit

Permalink
修复测试用例异常
Browse files Browse the repository at this point in the history
  • Loading branch information
chengyouling committed Nov 18, 2024
1 parent 2af2bf1 commit 6afd6f9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.apache.servicecomb.registry.api.registry.Microservice;
import org.apache.servicecomb.registry.api.registry.MicroserviceFactory;
import org.apache.servicecomb.registry.api.registry.MicroserviceInstance;
import org.apache.servicecomb.registry.config.InstancePropertiesConst;
import org.apache.servicecomb.serviceregistry.registry.LocalServiceRegistryFactory;
import org.junit.Test;
import org.junit.jupiter.api.Assertions;
Expand Down Expand Up @@ -89,6 +90,7 @@ public void testMicroservicePropertiesLoader() throws Exception {
public void testInstancePropertiesLoader() {
Microservice microservice = LocalServiceRegistryFactory.createLocal().getMicroservice();
MicroserviceInstance instance = microservice.getInstance();
instance.getProperties().remove(InstancePropertiesConst.REGISTER_TIME_KEY);
Map<String, String> expectedMap = new HashMap<>();
expectedMap.put("key0", "value0");
expectedMap.put("ek0", "ev0");
Expand Down

0 comments on commit 6afd6f9

Please sign in to comment.