fix:fix slip expire bucket bug in circuit breaker.

Haotian Zhang 1 year ago
parent 2ddaab8baf
commit 9789b531d2

@ -36,7 +36,7 @@ import static org.springframework.boot.test.context.SpringBootTest.WebEnvironmen
@SpringBootTest(webEnvironment = RANDOM_PORT, @SpringBootTest(webEnvironment = RANDOM_PORT,
classes = PolarisCircuitBreakerFeignIntegrationTest.TestConfig.class, classes = PolarisCircuitBreakerFeignIntegrationTest.TestConfig.class,
properties = { properties = {
"feign.hystrix.enabled=false", "feign.hystrix.enabled=false",
"spring.cloud.gateway.enabled=false", "spring.cloud.gateway.enabled=false",
"feign.circuitbreaker.enabled=true", "feign.circuitbreaker.enabled=true",
"spring.cloud.polaris.namespace=" + NAMESPACE_TEST, "spring.cloud.polaris.namespace=" + NAMESPACE_TEST,
@ -51,6 +51,7 @@ public class PolarisCircuitBreakerFeignIntegrationDisableFeignHystrixTest {
public void testFeignClient() { public void testFeignClient() {
assertThatThrownBy(() -> { assertThatThrownBy(() -> {
echoService.echo("test"); echoService.echo("test");
}).isInstanceOf(RuntimeException.class).hasMessageContaining("Load balancer does not have available server for client"); }).isInstanceOf(RuntimeException.class)
.hasMessageContaining("Load balancer does not have available server for client");
} }
} }

Loading…
Cancel
Save