pull/1350/head
Haotian Zhang 1 year ago
parent 256b59edd4
commit c6ac3c15ce

@ -140,7 +140,7 @@ public class LosslessRegistryAspectTest {
assertThatCode(() -> { assertThatCode(() -> {
assertThat(OkHttpUtil.checkUrl(HOST, LOSSLESS_PORT_1, "/online", Collections.EMPTY_MAP)).isFalse(); assertThat(OkHttpUtil.checkUrl(HOST, LOSSLESS_PORT_1, "/online", Collections.EMPTY_MAP)).isFalse();
}).doesNotThrowAnyException(); }).doesNotThrowAnyException();
// delay register after 5s // delay register after 10s
Thread.sleep(10000); Thread.sleep(10000);
PolarisServiceRegistry registry = context.getBean(PolarisServiceRegistry.class); PolarisServiceRegistry registry = context.getBean(PolarisServiceRegistry.class);
PolarisRegistration registration = context.getBean(PolarisRegistration.class); PolarisRegistration registration = context.getBean(PolarisRegistration.class);

@ -11,7 +11,7 @@ feign:
enabled: true enabled: true
#本地测试时打开 #本地测试时打开
tsf_namespace_id: default_namespace #tsf_namespace_id: default_namespace
logging: logging:
file: file:

@ -1,5 +1,5 @@
server: server:
port: 56789 port: 18081
spring: spring:
application: application:
name: provider-demo name: provider-demo
@ -7,6 +7,7 @@ spring:
import: optional:polaris import: optional:polaris
cloud: cloud:
polaris: polaris:
config:
address: grpc://127.0.0.1:8091 address: grpc://127.0.0.1:8091
namespace: default namespace: default
enabled: true enabled: true

Loading…
Cancel
Save