补充单测&&规范doc

pull/38/head
lambdaxiao 3 years ago
parent bd4472072d
commit 47e23f2b15

@ -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);
});
}

Loading…
Cancel
Save