@ -100,7 +100,7 @@ public class PolarisDiscoveryHandler {
/**
* Return all service for given namespace
*
* @return namespace下的服务列表
* @return service list
*/
public ServicesResponse GetServices() {
String namespace = polarisProperties.getNamespace();
@ -94,8 +94,7 @@ public class PolarisServiceDiscoveryTest {
this.contextRunner.run(context -> {
PolarisServiceDiscovery polarisServiceDiscovery = context.getBean(PolarisServiceDiscovery.class);
List<String> services = polarisServiceDiscovery.getServices();
assertThat(services.size()).isEqualTo(0);
assertThat(services.size()).isEqualTo(1);
});
}