diff --git a/spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/filter/factory/SpringCloudCircuitBreakerTestConfig.java b/spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/filter/factory/SpringCloudCircuitBreakerTestConfig.java index 1b481ee2..4487c19f 100644 --- a/spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/filter/factory/SpringCloudCircuitBreakerTestConfig.java +++ b/spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/filter/factory/SpringCloudCircuitBreakerTestConfig.java @@ -119,7 +119,7 @@ public class SpringCloudCircuitBreakerTestConfig { .route("circuitbreaker_connection_failure", r -> r.host("**.circuitbreakerconnectfail.org") .filters(f -> f.prefixPath("/httpbin").circuitBreaker(config -> { })) - .uri("lb://badservice")) + .uri(uri)) /* * This is a route encapsulated in a circuit breaker that is ready to wait for * a response far longer than the underpinning WebClient would.