From 3a45b8528784bf2d5eb87d09d353c5456afd45a7 Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Fri, 7 Sep 2018 12:15:13 -0400 Subject: [PATCH] Fixing broken test --- .../cloud/gateway/filter/LoadBalancerClientFilterTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/LoadBalancerClientFilterTests.java b/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/LoadBalancerClientFilterTests.java index d3f450951..29f4420e6 100644 --- a/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/LoadBalancerClientFilterTests.java +++ b/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/LoadBalancerClientFilterTests.java @@ -245,7 +245,7 @@ public class LoadBalancerClientFilterTests { public ServiceInstance choose(String serviceId) { String[] strings = serviceId.split("<<>>"); loadBalancerKey = strings[1]; - return super.choose(strings[0]); + return super.choose(strings[0], loadBalancerKey); } protected Server getServer(ILoadBalancer loadBalancer) { return loadBalancer == null ? null : loadBalancer.chooseServer(StringUtils.isEmpty(loadBalancerKey) ? "default" : loadBalancerKey);